WPJM_SUBMITRESUME::define_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/wp-job-manager/triggers/wpjm-submitresume.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/wp-job-manager/' ), 'integration' => self::$integration, 'code' => $this->trigger_code, /* translators: Logged-in trigger - WP Job Manager */ 'sentence' => esc_attr__( 'A user submits a resume', 'uncanny-automator' ), /* translators: Logged-in trigger - WP Job Manager */ 'select_option_name' => esc_attr__( 'A user submits a resume', 'uncanny-automator' ), 'action' => 'resume_manager_resume_submitted', 'priority' => 20, 'accepted_args' => 1, 'validation_function' => array( $this, 'resume_manager_resume_submitted' ), 'options' => array(), ); Automator()->register->trigger( $trigger ); }
Expand full source code Collapse full source code View on Github