wsf_action_email_subject

Description

The wsf_action_email_cc filter allows you to modify the Subject when sending emails using the Send Email action.

Usage

add_filter( 'wsf_action_email_subject', 'my_hook_function', 10, 4 );

Parameters

  1. $subject String
    The email subject.
  2. $form Form Object
    The form object.
  3. $submit Submit Object
    The submit object.
  4. $action Array
    The action configuration.

Example

// Add a callback function for the wsf_action_email_subject filter hook
add_filter( 'wsf_action_email_subject', 'my_hook_function', 10, 4 );

// Callback function for the wsf_action_email_subject filter hook
function my_hook_function( $subject, $form, $submit, $action ) {
	
	// Your code here ...

	// Return value
	return $subject;
}