Warning: This method has been deprecated. Use Automator()->process->user-> instead.
Automator_Functions::maybe_add_trigger_entry( $args, $mark_trigger_complete = true )
Matches recipes against trigger meta/code. If a recipe is found and not completed, add a trigger entry in to the DB and matches number of times.
Contents
Parameters Parameters
- $args
-
(Required)
- $mark_trigger_complete
-
(Optional)
Default value: true
Return Return
(array|bool|int|null)
Source Source
File: src/core/lib/class-automator-functions.php
public function maybe_add_trigger_entry( $args, $mark_trigger_complete = true ) { if ( defined( 'AUTOMATOR_DEBUG_MODE' ) && true === AUTOMATOR_DEBUG_MODE ) { _doing_it_wrong( 'maybe_add_trigger_entry', 'Please use Automator()->process->user->maybe_add_trigger_entry() instead.', 3.0 ); } return $this->process->user->maybe_add_trigger_entry( $args, $mark_trigger_complete ); }
Expand full source code Collapse full source code View on Github
Changelog Changelog
Version | Description |
---|---|
3.0 | Introduced. |