Answers for "woocommerce recipient email default change Function"

PHP
0

woocommerce recipient email default change Function

function so_39779506_filter_recipient( $recipient ) {
				
		// Use this to completely replace the recipient.
		$recipient = '[email protected]';
		// $recipient = '[email protected]';
		return $recipient;
				
        // Use this instead IF you wish to ADD this email to the default recipient.
        //$recipient .= ', [email protected]';
}
add_filter( 'woocommerce_email_recipient_new_order', 'so_39779506_filter_recipient', 10, 2 );
Posted by: Guest on November-19-2020

Code answers related to "woocommerce recipient email default change Function"

Browse Popular Code Answers by Language