woocommerce_create_refund
Action hook to adjust refund before save.
Usage
add_action( 'woocommerce_create_refund', 'wp_kama_woocommerce_create_refund_action', 10, 2 ); /** * Function for `woocommerce_create_refund` action-hook. * * @param $refund * @param $args * * @return void */ function wp_kama_woocommerce_create_refund_action( $refund, $args ){ // action... }
- $refund
- -
- $args
- -
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
woocommerce_create_refund
woocommerce/includes/wc-order-functions.php 620
do_action( 'woocommerce_create_refund', $refund, $args );