woocommerce_show_invalid_variations_notice

woocommerce_show_invalid_variations_notice

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_show_invalid_variations_notice') is found 1 times:

  • /includes/admin/wc-admin-functions.php line 496
    	global $wpdb;
    
    	// Give ability for extensions to hide this notice.
    	/* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
    	if ( ! apply_filters( 'woocommerce_show_invalid_variations_notice', true, $product_object ) ) {
    		return;
    	}
    	/* phpcs: enable */
    
    	$variation_ids = $product_object ? $product_object->get_children() : array();