woocommerce_order_fully_refunded

woocommerce_order_fully_refunded

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_order_fully_refunded') is found 1 times:

  • /includes/wc-order-functions.php line 676
    			 */
    			if ( (bool) apply_filters( 'woocommerce_order_is_partially_refunded', ( $remaining_refund_amount - $args['amount'] ) > 0 || ( $order->has_free_item() && ( $remaining_refund_items - $refund_item_count ) > 0 ), $order->get_id(), $refund->get_id() ) ) {
    				do_action( 'woocommerce_order_partially_refunded', $order->get_id(), $refund->get_id() );
    			} else {
    				do_action( 'woocommerce_order_fully_refunded', $order->get_id(), $refund->get_id() );
    
    				$parent_status = apply_filters( 'woocommerce_order_fully_refunded_status', 'refunded', $order->get_id(), $refund->get_id() );
    
    				if ( $parent_status ) {
    					$order->update_status( $parent_status );
    				}