Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
AUTONAMI_USER_TAG_ADDED::validate_trigger( $args )
Validation function when the trigger action is hit
Contents
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Parameters Parameters
- $data
(Required)
Source Source
File: src/integrations/autonami/triggers/autonami-user-tag-added.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