“wooCommerce_order_status_changed” Kode Jawaban

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 );
Shubham Rathod

woocommerce_order_status_changed add action

add_action('woocommerce_order_status_changed', 'woo_order_status_change_custom', 10, 3);
Cheerful Cod

Jawaban yang mirip dengan “wooCommerce_order_status_changed”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya