Celebrate WordCamp Asia! - 30% OFF with coupon WC30 at checkout - Terms

wsf_action_email_cc

Description

The wsf_action_email_cc filter allows you to modify the CC array of email addresses when sending emails using the Send Email action.

Usage

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

Parameters

  1. $cc_emails Array
    An array of email addresses in RFC 2822 format to CC the email to.
  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_cc filter hook
function my_hook_function( $cc_emails, $form, $submit, $action ) {
	
	// Your code here ...

	// Return value
	return $cc_emails;
}

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