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