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

apply_filters('woocommerce_bulk_edit_variations_need_children') is found 1 times:

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