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
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
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
AC_TOKENS::register_tokens( mixed $tokens = array(), mixed $args = array() )
register_tokens
Contents
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
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
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
Parameters Parameters
- $tokens
(Optional)
Default value: array()
- $args
(Optional)
Default value: array()
Return Return
(void)
Source Source
File: src/integrations/active-campaign/tokens/ac-tokens.php
public function register_tokens( $tokens = array(), $args = array() ) { if ( ! automator_do_identify_tokens() ) { return $tokens; } $trigger_integration = $args['integration']; $trigger_meta = $args['meta']; $tokens[] = array( 'tokenId' => 'EMAIL', 'tokenName' => __( 'Email address', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'CONTACT_TAG_ADDED', ); $tokens[] = array( 'tokenId' => 'TAGS', 'tokenName' => __( 'All contact tags (comma separated)', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'CONTACT_TAG_ADDED', ); $tokens[] = array( 'tokenId' => 'FIRST_NAME', 'tokenName' => __( 'First Name', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'CONTACT_TAG_ADDED', ); $tokens[] = array( 'tokenId' => 'LAST_NAME', 'tokenName' => __( 'Last name', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'CONTACT_TAG_ADDED', ); $tokens[] = array( 'tokenId' => 'PHONE', 'tokenName' => __( 'Phone', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'CONTACT_TAG_ADDED', ); $tokens[] = array( 'tokenId' => 'CUSTOMER_ACCT_NAME', 'tokenName' => __( 'Account', 'uncanny-automator' ), 'tokenType' => 'text', 'tokenIdentifier' => 'CONTACT_TAG_ADDED', ); return $tokens; }
Expand full source code Collapse full source code View on Github