Noptin_Automation_Rules_Table::column_status( Noptin_Automation_Rule $item )

Displays the rules’s status


Parameters Parameters

$item

(Noptin_Automation_Rule) (Required) item.


Top ↑

Return Return

(HTML)


Top ↑

Source Source

File: includes/automation-rules/class-noptin-automation-rules-table.php

	public function column_status( $item ) {

		$status = ! empty( $item->status ) ? __( 'Active', 'newsletter-optin-box' ) : __( 'Inactive', 'newsletter-optin-box' );
		$class  = ! empty( $item->status ) ? 'status-active' : 'status-inactive';

		return "<span class='$class'>$status</span>";
	}

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation