woocommerce_can_restore_order_stock

woocommerce_can_restore_order_stock

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_can_restore_order_stock') is found 1 times:

  • /includes/wc-stock-functions.php line 277
    		$order = wc_get_order( $order_id );
    	}
    
    	// We need an order, and a store with stock management to continue.
    	if ( ! $order || 'yes' !== get_option( 'woocommerce_manage_stock' ) || ! apply_filters( 'woocommerce_can_restore_order_stock', true, $order ) ) {
    		return;
    	}
    
    	$changes = array();
    
    	// Loop over all items.