woocommerce_refund_created
Usage
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
- -
Where the hook is called
woocommerce_refund_created
woocommerce/includes/wc-order-functions.php 689
do_action( 'woocommerce_refund_created', $refund->get_id(), $args );
Where the hook is used in WooCommerce
woocommerce/src/Internal/Admin/Schedulers/OrdersScheduler.php 44
add_action( 'woocommerce_refund_created', array( __CLASS__, 'possibly_schedule_import' ) );
woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php 109
self::add_action( 'woocommerce_refund_created', array( $this, 'handle_updated_order' ), 100 );