woocommerce_can_restock_refunded_items

woocommerce_can_restock_refunded_items

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_can_restock_refunded_items') is found 1 times:

  • /includes/wc-order-functions.php line 756
     * @param WC_Order $order               Order instance.
     * @param array    $refunded_line_items Refunded items list.
     */
    function wc_restock_refunded_items( $order, $refunded_line_items ) {
    	if ( ! apply_filters( 'woocommerce_can_restock_refunded_items', true, $order, $refunded_line_items ) ) {
    		return;
    	}
    
    	$line_items = $order->get_items();
    
    	foreach ( $line_items as $item_id => $item ) {