woocommerce_pay_order_product_in_stock хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_pay_order_product_in_stock', 'wp_kama_woocommerce_pay_order_product_in_stock_filter', 10, 3 );

/**
 * Function for `woocommerce_pay_order_product_in_stock` filter-hook.
 * 
 * @param  $is_in_stock 
 * @param  $product     
 * @param  $order       
 *
 * @return 
 */
function wp_kama_woocommerce_pay_order_product_in_stock_filter( $is_in_stock, $product, $order ){

	// filter...
	return $is_in_stock;
}
$is_in_stock
-
$product
-
$order
-

Где вызывается хук

WC_Shortcode_Checkout::order_pay()
woocommerce_pay_order_product_in_stock
woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php 149
if ( ! apply_filters( 'woocommerce_pay_order_product_in_stock', $product->is_in_stock(), $product, $order ) ) {

Где используется хук в WooCommerce

Использование не найдено.