Skip to:
Content

  • Home
  • Integrations
  • Help
  • Blog
  • Download
Automator Developer Resources

Code Reference

  • Home
  • Reference
Filter by type:
Search
Browse: Home / Reference / Classes / AMELIA_REGISTER_EVENT / AMELIA_REGISTER_EVENT::validate_trigger()

AMELIA_REGISTER_EVENT::validate_trigger( $args )


Source

File: src/integrations/ameliabooking/triggers/amelia-register-event.php

	public function validate_trigger( ...$args ) {

		$is_valid = false;

		if ( isset( $args[0] ) ) {
			$reservation = array_shift( $args[0] );
			// Only run for reservation type 'event'.
			if ( isset( $reservation['type'] ) && 'event' === $reservation['type'] ) {
				$is_valid = true;
			}
		}

		return $is_valid;

	}

Expand full source code Collapse full source code View on Github


Twitter • Facebook • YouTube • Contact Us • Privacy • Terms of Service