woocommerce_can_restock_refunded_items filter-hookWC 3.0.0

Restock items during refund.

Usage

add_filter( 'woocommerce_can_restock_refunded_items', 'wp_kama_woocommerce_can_restock_refunded_items_filter', 10, 2 );

/**
 * Function for `woocommerce_can_restock_refunded_items` filter-hook.
 * 
 * @param WC_Order $order               Order instance.
 * @param          $refunded_line_items 
 *
 * @return WC_Order
 */
function wp_kama_woocommerce_can_restock_refunded_items_filter( $order, $refunded_line_items ){

	// filter...
	return $order;
}
$order(WC_Order)
Order instance.
$refunded_line_items
-

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wc_restock_refunded_items()
woocommerce_can_restock_refunded_items
woocommerce/includes/wc-order-functions.php 703
if ( ! apply_filters( 'woocommerce_can_restock_refunded_items', true, $order, $refunded_line_items ) ) {

Where the hook is used in WooCommerce

Usage not found.