Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Trigger Receiptful mail directly after order, no matter the status (designed to send a email right after ordering with BACS gateway)
if ( function_exists( 'Receiptful' ) ) :
remove_action( 'woocommerce_order_status_on-hold_to_processing', array( Receiptful()->email, 'send_transactional_email' ) );
add_action( 'woocommerce_order_status_pending_to_on-hold', array( Receiptful()->email, 'send_transactional_email' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.