Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
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
Wpf_Tokens::is_pro_field( array $token_info, array $entry, string $to_match )
Check if field is available in pro only.
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
- $token_info
(Required)
- $entry
(Required)
- $to_match
(Required)
Return Return
(bool)
Source Source
File: src/integrations/wpforms/tokens/wpf-tokens.php
private function is_pro_field( $token_info, $entry, $to_match ) { list( $form_id, $field_id ) = $token_info; // Get the form. $form = $this->get_wpforms_form( absint( $form_id ) ); // Get the field type. $field_type = $form['fields'][ $field_id ]['type']; // REVIEW - Would be nice to grab these from a function. $pro_only = apply_filters( 'automator_wpforms_pro_only_fields', array( 'phone', 'address', 'date-time', 'url', 'file-upload', 'password', 'richtext', 'layout', 'pagebreak', 'divider', 'html', 'content', 'rating', 'hidden', 'captcha', 'signature', 'likert_scale', 'net_promoter_score', 'paypal-commerce', 'square', 'authorize_net', ) ); return in_array( $field_type, $pro_only, true ); }
Expand full source code Collapse full source code View on Github