Noptin_Automation_Rules::has_trigger( string $trigger_id )
Checks if there is a trigger with that id.
Parameters Parameters
- $trigger_id
(string) (Required) The trigger's unique id.
Return Return
(bool) whether or not the trigger exists.
Source Source
File: includes/automation-rules/class-noptin-automation-rules.php
public function has_trigger( $trigger_id ) { return is_scalar( $trigger_id ) && ! empty( $this->triggers[ $trigger_id ] ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.2.8 | Introduced. |