AUTONAMI_USER_ADDED_TO_LIST::validate_trigger( $args )
Validation function when the trigger action is hit
Contents
Parameters Parameters
- $data
-
(Required)
Source Source
File: src/integrations/autonami/triggers/autonami-user-added-to-list.php
public function validate_trigger( ...$args ) { try { $contact = $this->helpers->extract_contact_from_args( $args ); $user_id = $this->helpers->get_wp_id( $contact ); $this->set_user_id( $user_id ); } catch ( \Exception $e ) { return false; } return true; }
Expand full source code Collapse full source code View on Github