I am using this hook woocommerce_email_subject_customer_procesing_order
to change email subject but it is not working. I have tried other hooks to update subject for order completion woocommerce_email_subject_customer_completed_order
or on hold woocommerce_email_subject_customer_on_hold_order
and these hooks are working fine.
Can anybody guide me about this issue. I do not have a lot of woo commerce experience and need some help to fix this issue. Here is my code
add_filter('woocommerce_email_subject_customer_procesing_order', 'change_admin_email_subjects', 999, 2 );
function change_admin_email_subjects( $subject, $order ) {
global $woocommerce;
$subject = 'Your Job Posting Receipt';
return $subject;
}
I know we can change subject via woo commerce settings but I have some conditions for this update so that is why I am trying to do this using woo commerce hook.