Hi There,
I have a child theme and need to make start an action when an order is set to “processing”. It seems the action does not fire correctly.
Here is my code below:
add_action( ‘woocommerce_order_status_processing’, ‘qcmaipr_send_order_to_ext’, 10, 1 );
function qcmaipr_send_order_to_ext( $order_id ){
//test the function sending an eMail
require(‘../../../wp-load.php’);
wp_mail( (Email address hidden if logged out) ‘, ‘My subject, ‘corder in process’);
}
Can you help me?
Correction, here is the code, thete was a “‘” missing :!
add_action( ‘woocommerce_order_status_processing’, ‘qcmaipr_send_order_to_ext’, 10, 1 );
function qcmaipr_send_order_to_ext( $order_id ){
//test the function sending an eMail
require(‘../../../wp-load.php’);
wp_mail( (Email address hidden if logged out) ‘, ‘My subject’, ‘corder in process’);
}