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

apply_filters('woocommerce_bulk_edit_variations_need_children') is found 1 times:

  • /includes/class-wc-ajax.php line 2883
    		$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',