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
Action_Parser::validate_if_email( $content, $meta_key )
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
- $content
(Required)
- $meta_key
(Required)
Return Return
(false|string|void)
Source Source
File: src/core/lib/recipe-parts/actions/trait-action-parser.php
private function validate_if_email( $content, $meta_key ) { if ( 0 === preg_match( '/EMAIL/', $meta_key ) ) { return false; } $list = array( 'EMAILFROM', 'EMAILFROMNAME', 'EMAILTO', 'EMAILCC', 'EMAILBCC', 'AFFILIATEWPACCEMAIL', 'AFFILIATEWPPAYMENTEMAIL', 'EDDCUSTOMER_EMAIL', 'MCFROMEMAILADDRESS', 'POSTCOMMENTEREMAIL', 'POSTAUTHOREMAIL', 'SENDREGEMAIL', 'WPJMAPPLICATIONEMAIL', 'WPJMRESUMEEMAIL', 'WPJMJOBOWNEREMAIL', 'MCFROMEMAILADDRESS', ); $list = apply_filters( 'automator_ignore_wpautop_list', $list, $content, $meta_key ); if ( in_array( $meta_key, $list, true ) ) { return true; } if ( is_array( $content ) ) { foreach ( $content as $email ) { return is_email( $email ); } } }
Expand full source code Collapse full source code View on Github