woocommerce_order_status_pending_to_on-hold_notification action-hookWC 1.0

This action is documented in includes/class-wc-emails.php

Usage

add_action( 'woocommerce_order_status_pending_to_on-hold_notification', 'wp_kama_woocommerce_order_status_pending_to_on_hold_notification_action', 10, 2 );

/**
 * Function for `woocommerce_order_status_pending_to_on-hold_notification` action-hook.
 * 
 * @param  $order_id 
 * @param  $order    
 *
 * @return void
 */
function wp_kama_woocommerce_order_status_pending_to_on_hold_notification_action( $order_id, $order ){

	// action...
}
$order_id
-
$order
-

Where the hook is called

OrderActionsRestController::send_email()
woocommerce_order_status_pending_to_on-hold_notification
woocommerce/src/Internal/Orders/OrderActionsRestController.php 465
do_action( 'woocommerce_order_status_pending_to_on-hold_notification', $order->get_id(), $order ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

Where the hook is used in WooCommerce

woocommerce/includes/emails/class-wc-email-customer-on-hold-order.php 41
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
woocommerce/includes/emails/class-wc-email-new-order.php 44
add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );