woocommerce_ prefix in refund actions, related #6477
This commit is contained in:
parent
5e07ec0382
commit
bc1ea4fdea
|
@ -1891,7 +1891,7 @@ class WC_AJAX {
|
|||
if ( isset( $payment_gateways[ $order->payment_method ] ) && $payment_gateways[ $order->payment_method ]->supports( 'refunds' ) ) {
|
||||
$result = $payment_gateways[ $order->payment_method ]->process_refund( $order_id, $refund_amount, $refund_reason );
|
||||
|
||||
do_action( 'wc_refund_processed', $refund, $result );
|
||||
do_action( 'woocommerce_refund_processed', $refund, $result );
|
||||
|
||||
if ( is_wp_error( $result ) ) {
|
||||
throw new Exception( $result->get_error_message() );
|
||||
|
|
|
@ -672,7 +672,7 @@ function wc_create_refund( $args = array() ) {
|
|||
// Set total to total refunded which may vary from order items
|
||||
$refund->set_total( wc_format_decimal( $args['amount'] ) * -1, 'total' );
|
||||
|
||||
do_action( 'wc_refund_created', $refund_id );
|
||||
do_action( 'woocommerce_refund_created', $refund_id );
|
||||
}
|
||||
|
||||
// Clear transients
|
||||
|
|
Loading…
Reference in New Issue