woocommerce_refund_created хук-событиеWC 1.0

Использование

add_action( 'woocommerce_refund_created', 'wp_kama_woocommerce_refund_created_action', 10, 2 );

/**
 * Function for `woocommerce_refund_created` action-hook.
 * 
 * @param  $refund_id 
 * @param  $args      
 *
 * @return void
 */
function wp_kama_woocommerce_refund_created_action( $refund_id, $args ){

	// action...
}
$refund_id
-
$args
-

Где вызывается хук

wc_create_refund()
woocommerce_refund_created
woocommerce/includes/wc-order-functions.php 636
do_action( 'woocommerce_refund_created', $refund->get_id(), $args );

Где используется хук в WooCommerce

woocommerce/src/Internal/Admin/Schedulers/OrdersScheduler.php 40
add_action( 'woocommerce_refund_created', array( __CLASS__, 'possibly_schedule_import' ) );