I need to send a customer email notification when I manually set order status from processing
to on-hold
status. I have added the following action hook into my functions.php
file:
add_action( 'woocommerce_order_status_processing_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
Its not working (not showing in WP Mail Log), even though this particular email notification is enabled in woocommerce settings and the similar hook as shown below is working just fine:
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
Environment: Woocommerce v.3.5.1 Wordpress v.4.9.9 PHP 5.6
Any help would be much appreciated.