woocommerce_show_invalid_variations_notice filter-hookWC 1.0

phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment

Usage

add_filter( 'woocommerce_show_invalid_variations_notice', 'wp_kama_woocommerce_show_invalid_variations_notice_filter', 10, 2 );

/**
 * Function for `woocommerce_show_invalid_variations_notice` filter-hook.
 * 
 * @param  $true           
 * @param  $product_object 
 *
 * @return 
 */
function wp_kama_woocommerce_show_invalid_variations_notice_filter( $true, $product_object ){

	// filter...
	return $true;
}
$true
-
$product_object
-

Where the hook is called

wc_render_invalid_variation_notice()
woocommerce_show_invalid_variations_notice
woocommerce/includes/admin/wc-admin-functions.php 496
if ( ! apply_filters( 'woocommerce_show_invalid_variations_notice', true, $product_object ) ) {

Where the hook is used in WooCommerce

Usage not found.