DIVI_SUBMITFORM::define_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/divi/triggers/divi-submitform.php
public function define_trigger() { $trigger = array( 'author' => Automator()->get_author_name(), 'support_link' => Automator()->get_author_support_link( $this->trigger_code, 'integration/divi/' ), 'integration' => self::$integration, 'code' => $this->trigger_code, /* translators: Logged-in trigger - Divi */ 'sentence' => sprintf( esc_attr__( 'A user submits {{a form:%1$s}}', 'uncanny-automator' ), $this->trigger_meta ), /* translators: Logged-in trigger - Divi */ 'select_option_name' => esc_attr__( 'A user submits {{a form}}', 'uncanny-automator' ), 'action' => 'et_pb_contact_form_submit', 'priority' => 100, 'accepted_args' => 3, 'validation_function' => array( $this, 'divi_form_handler' ), 'options_callback' => array( $this, 'load_options' ), ); Automator()->register->trigger( $trigger ); }
Expand full source code Collapse full source code View on Github