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
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
PeepSo_Tokens::parse_peepso_token( $value, $pieces, $recipe_id, $trigger_data, $user_id, $replace_args )
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
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
- $value
(Required)
- $pieces
(Required)
- $recipe_id
(Required)
- $trigger_data
(Required)
Return Return
(mixed)
Source Source
File: src/integrations/peepso/tokens/peepso-tokens.php
public function parse_peepso_token( $value, $pieces, $recipe_id, $trigger_data, $user_id, $replace_args ) { if ( empty( $pieces ) ) { return $value; } if ( $pieces ) { if ( in_array( 'POSTID', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'POSTBODY', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'POSTURL', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'AVATARURL', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'FL_USERNAME', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'FL_FIRST_NAME', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'FL_LAST_NAME', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'FL_GENDER', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'FL_BIRTHDATE', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'FL_FOLLOWERS', $pieces, true ) ) { return ( $this->get_token_value( $pieces ) ) ? $this->get_token_value( $pieces ) : 0; } if ( in_array( 'FL_FOLLOWING', $pieces, true ) ) { return ( $this->get_token_value( $pieces ) ) ? $this->get_token_value( $pieces ) : 0; } if ( in_array( 'FL_PROFILEURL', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'FL_EMAIL', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'FL_USERID', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'USR_AVATARURL', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'USR_GENDER', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'USR_BIRTHDATE', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'USR_FOLLOWERS', $pieces, true ) ) { return ( $this->get_token_value( $pieces ) ) ? $this->get_token_value( $pieces ) : 0; } if ( in_array( 'USR_FOLLOWING', $pieces, true ) ) { return ( $this->get_token_value( $pieces ) ) ? $this->get_token_value( $pieces ) : 0; } if ( in_array( 'USR_PROFILEURL', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'USR_ABOUTME', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'USR_WEBSITE', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'USR_USERROLE', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'PPFIELD_NAME', $pieces, true ) ) { return $this->get_token_value( $pieces ); } if ( in_array( 'PPFIELD_VALUE', $pieces, true ) ) { return $this->get_token_value( $pieces ); } } return $value; }
Expand full source code Collapse full source code View on Github