AMELIABOOKING_TOKENS::__construct()
__construct
Return Return
(void)
Source Source
File: src/integrations/ameliabooking/tokens/ameliabooking-tokens.php
public function __construct() { add_action( 'automator_before_trigger_completed', array( $this, 'save_token_data' ), 20, 2 ); // Save token data for reservation types. add_action( 'automator_before_trigger_completed', array( $this, 'save_token_data_reservation' ), 30, 2 ); foreach ( self::APPOINTMENT_BOOKING_TOKENS_TRIGGERS as $trigger_code ) { add_filter( 'automator_maybe_trigger_ameliabooking_' . strtolower( $trigger_code ) . '_tokens', array( $this, 'register_tokens' ), 20, 2 ); } foreach ( self::RESERVATION_TOKENS_TRIGGERS as $trigger_code ) { add_filter( 'automator_maybe_trigger_ameliabooking_' . strtolower( $trigger_code ) . '_tokens', array( $this, 'register_reservation_tokens' ), 20, 2 ); } add_filter( 'automator_maybe_parse_token', array( $this, 'parse_tokens' ), 20, 6 ); // Parse reservation tokens. add_filter( 'automator_maybe_parse_token', array( $this, 'parse_tokens_reservation' ), 20, 6 ); }
Expand full source code Collapse full source code View on Github