woocommerce_ prefix in refund actions, related #6477

This commit is contained in:
claudiosmweb 2014-10-09 13:15:42 -03:00
parent 5e07ec0382
commit bc1ea4fdea
2 changed files with 2 additions and 2 deletions

View File

@ -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() );

View File

@ -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