Description
The wsf_action_email_to filter allows you to modify the To array of email addresses when sending emails using the Send Email action.
Usage
add_filter( wsf_action_email_to, 'my_hook_function', 10, 4 );
Parameters
Example
// Add a callback function for the wsf_action_email_to filter hook add_filter( wsf_action_email_to, 'my_hook_function', 10, 4 ); // Callback function for the wsf_action_email_to filter hook function my_hook_function( $to, $form, $submit, $action ) { // Your code here ... // Return value return $to; }
Source File
This hook can be found in:<plugin root>/includes/actions/class-ws-form-action-email.php