UOA_ERRORS::define_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/uncanny-automator/triggers/uoa-errors.php
public function define_trigger() { $trigger = array( 'author' => Automator()->get_author_name( $this->trigger_code ), 'support_link' => Automator()->get_author_support_link( $this->trigger_code, 'integration/automator-core/' ), 'integration' => self::$integration, 'code' => $this->trigger_code, /* translators: Logged-in trigger - Uncanny Automator */ 'sentence' => sprintf( esc_attr__( 'An Automator recipe completes with errors', 'uncanny-automator' ) ), /* translators: Logged-in trigger - Uncanny Automator */ 'select_option_name' => esc_attr__( 'An Automator recipe completes with errors', 'uncanny-automator' ), 'action' => 'automator_recipe_completed', 'priority' => 99, 'accepted_args' => 4, 'validation_function' => array( $this, 'error' ), 'options' => array(), ); Automator()->register->trigger( $trigger ); return; }
Expand full source code Collapse full source code View on Github