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.7.1

apply_filters('woocommerce_show_invalid_variations_notice') is found 1 times:

  • /includes/admin/wc-admin-functions.php line 495
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    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();