AC_CONTACT_TAG_ADDED::validate_trigger( mixed $args )
validate_trigger
Contents
Parameters Parameters
- $args
-
(Required)
Return Return
(void)
Source Source
File: src/integrations/active-campaign/triggers/ac-contact-tag-added.php
public function validate_trigger( ...$args ) { if ( ! is_array( $args ) ) { return false; } $trigger_data = array_shift( $args ); if ( ! is_array( $trigger_data ) ) { return false; } $ac_event = array_shift( $trigger_data ); // If the event type or the tag is missing, bail out if ( ! is_array( $ac_event ) || ! isset( $ac_event['type'] ) || ! isset( $ac_event['tag'] ) ) { return false; } // If the event is not what we need, bail out if ( 'contact_tag_added' !== $ac_event['type'] ) { return false; } return Automator()->helpers->recipe->active_campaign->options->validate_trigger(); }
Expand full source code Collapse full source code View on Github