ANON_CF_SUBFORM::define_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/caldera-forms/triggers/anon-cf-subform.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/caldera-forms/' ), 'is_pro' => false, 'integration' => self::$integration, 'code' => $this->trigger_code, 'meta' => $this->trigger_meta, /* translators: Anonymous trigger - Caldera Forms */ 'sentence' => sprintf( __( '{{A form:%1$s}} is submitted', 'uncanny-automator' ), $this->trigger_meta ), /* translators: Anonymous trigger - Caldera Forms */ 'select_option_name' => __( '{{A form}} is submitted', 'uncanny-automator' ), 'action' => 'caldera_forms_submit_complete', 'type' => 'anonymous', 'priority' => 99, 'accepted_args' => 4, 'validation_function' => array( $this, 'caldera_forms_submit' ), 'options' => [ Automator()->helpers->recipe->caldera_forms->options->list_caldera_forms_forms( null, $this->trigger_meta ), ], ); Automator()->register->trigger( $trigger ); }
Expand full source code Collapse full source code View on Github