wsf_action_email_reply_to

Description

The wsf_action_email_reply_to filter allows you to modify the Reply To setting when sending emails using the Send Email action.

Usage

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

Parameters

  1. $email_reply_to String
    The reply to email address in RFC 2822 format.
  2. $form Form Object
    The form object.
  3. $submit Submit Object
    The submit object.
  4. $action Array
    The action configuration.

Example

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

	// Return value
	return $email_reply_to;
}

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

Source File

This hook can be found in: <plugin root>/includes/actions/class-ws-form-action-email.php