woocommerce_bulk_edit_variations_need_children

woocommerce_bulk_edit_variations_need_children

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_bulk_edit_variations_need_children') is found 1 times:

  • /includes/class-wc-ajax.php line 2916
    2912
    2913
    2914
    2915
    2916
    2917
    2918
    2919
    2920
    2921
    2922
    $bulk_action = wc_clean( wp_unslash( $_POST['bulk_action'] ) );
    $data        = ! empty( $_POST['data'] ) ? wc_clean( wp_unslash( $_POST['data'] ) ) : array();
    $variations  = array();
     
    if ( apply_filters( 'woocommerce_bulk_edit_variations_need_children', true ) ) {
        $variations = get_posts(
            array(
                'post_parent'    => $product_id,
                'posts_per_page' => -1,
                'post_type'      => 'product_variation',
                'fields'         => 'ids',