Search
 
SCRIPT & CODE EXAMPLE
 

PHP

woocommerce recipient email default change Function

function so_39779506_filter_recipient( $recipient ) {
				
		// Use this to completely replace the recipient.
		$recipient = 'stack@gmail.com';
		// $recipient = 'siraj2544@gmail.com';
		return $recipient;
				
        // Use this instead IF you wish to ADD this email to the default recipient.
        //$recipient .= ', stack@example.com';
}
add_filter( 'woocommerce_email_recipient_new_order', 'so_39779506_filter_recipient', 10, 2 );
Comment

PREVIOUS NEXT
Code Example
Php :: turn off wordpress user list exposed 
Php :: acf get all checkbox options 
Php :: get last name user 
Php :: get 2 hrs before data in php 
Php :: make php website https 
Php :: activerecord yii2 select with limit(start,end) not working 
Php :: php timezone paris 
Php :: log magento 1 
Php :: is search page wordpress dev 
Php :: recursive directory only listing php 
Php :: last index of array in laravel 
Php :: tinker laravel 8 
Php :: Get the current script file name 
Php :: php ifelse 
Php :: laravel query when 
Php :: check email veriy or not laravel 
Php :: insert views laravel database 
Php :: php substr_replace 
Php :: Laravel unique Validation with multiple input value 
Php :: laravel add many to many 
Php :: sum of each group in laravel 
Php :: how to remove last element from php array 
Php :: check if the logged in user is admin 
Php :: laravel edit method 
Php :: check if any field update laravel 
Php :: php sqlite last insert id 
Php :: php function use 
Php :: php += 
Php :: Merge Two Collection 
Php :: laravel all() 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =