Noptin_Abstract_Action::get_rules()
Returns all active rules attached to this action.
Return Return
(array)
Source Source
File: includes/automation-rules/actions/class-noptin-abstract-action.php
public function get_rules() { global $wpdb; if ( is_array( $this->rules ) ) { return $this->rules; } $table = noptin()->automation_rules->get_table(); $this->rules = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $table WHERE `action_id`=%s AND `status`='1'", $this->get_id() ) ); return $this->rules; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.2.8 | Introduced. |