AMELIA_REGISTER_EVENT::setup_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/ameliabooking/triggers/amelia-register-event.php
public function setup_trigger() { $this->set_integration( 'AMELIABOOKING' ); $this->set_trigger_code( self::TRIGGER_CODE ); $this->set_trigger_meta( self::TRIGGER_META ); $this->set_is_login_required( false ); $this->set_trigger_type( 'anonymous' ); $this->set_action_args_count( 2 ); /* Translators: Trigger sentence */ $this->set_sentence( sprintf( esc_html__( 'A guest registers for {{an event:%1$s}}', 'uncanny-automator' ), $this->get_trigger_meta() ) ); /* Translators: Trigger sentence */ $this->set_readable_sentence( esc_html__( 'A guest registers for {{an event}}', 'uncanny-automator' ) ); // Non-active state sentence to show $this->add_action( 'AmeliaBookingAddedBeforeNotify' ); $this->set_options_callback( array( $this, 'load_options' ) ); $this->register_trigger(); }
Expand full source code Collapse full source code View on Github