Search
 
SCRIPT & CODE EXAMPLE
 

PHP

woocommerce_order_status_changed

function forcesendmail ( $order_id, $old_status, $new_status ){
  $order = new WC_Order($order_id);
    if( $new_status == "processing" ) {
	   WC()->mailer()->emails['WC_Email_Customer_Processing_Order']->trigger($order_id);
    }
}

add_action( 'woocommerce_order_status_changed', 'forcesendmail', 99, 3 );
Comment

woocommerce_order_status_changed add action

add_action('woocommerce_order_status_changed', 'woo_order_status_change_custom', 10, 3);
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress get post date 
Php :: get curl httcode php 
Php :: laravel signed Route custom domain 
Php :: remove colon and white space in a string by php 
Php :: Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. 
Php :: laravel move file from local to s3 
Php :: replace string in php 
Php :: check the route type in laravel 
Php :: PHP MySQL Use The ORDER BY Clause 
Php :: php increment and decrement 
Php :: country code validation in laravel 
Php :: artisan in route in laravel 
Php :: apache using wrong php version 
Php :: route codeigniter 
Php :: php split string 
Php :: laravel all fillable 
Php :: phpexcel set row height 
Php :: laravel post ajax proper csrf 
Php :: job with queue name in laravel 
Php :: get request header codeingiter3 
Php :: laravel collection sum 
Php :: symfony rabbitMQ 
Php :: laravel vue browser cache auto clear 
Php :: laravel blade php variable concatenate javascript variable 
Php :: get all users created in a month laravel 
Php :: laravel validation required if 
Php :: php convert latitude longitude to map tile 
Php :: how create page 419 in laravel 
Php :: Laravel API Endpoint "401 Unauthorized" on Server But Works Fine On Localhost 
Php :: mail() function in php not working 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =