Description
The wsf_action_email_email_validate filter allows you to validate email addresses prior to sending emails using the Send Email action.
A detailed tutorial about using this filter can be found here:
Usage
add_filter( 'wsf_action_email_email_validate', 'my_hook_function', 10, 4 );
Parameters
Example
// Callback function for the wsf_action_email_email_validate filter hook
function my_hook_function( $valid, $email, $form_id, $field_id ) {
// Your code here ...
// Return value
return $valid;
}
// Add a callback function for the wsf_action_email_email_validate filter hook
add_filter( 'wsf_action_email_email_validate', 'my_hook_function', 10, 4 );
Source File
This hook can be found in:<plugin root>/includes/actions/class-ws-form-action-email.php