woocommerce_variable_children_args

woocommerce_variable_children_args

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_variable_children_args') is found 2 times:

  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 150
    					'terms'    => 'outofstock',
    					'operator' => 'NOT IN',
    				);
    			}
    			$children['all']     = get_posts( apply_filters( 'woocommerce_variable_children_args', $all_args, $product, false ) );
    			$children['visible'] = get_posts( apply_filters( 'woocommerce_variable_children_args', $visible_only_args, $product, true ) );
    
    			set_transient( $children_transient_name, $children, DAY_IN_SECONDS * 30 );
    		}
    
    		$children['all']     = wp_parse_id_list( (array) $children['all'] );
    
  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 151
    					'operator' => 'NOT IN',
    				);
    			}
    			$children['all']     = get_posts( apply_filters( 'woocommerce_variable_children_args', $all_args, $product, false ) );
    			$children['visible'] = get_posts( apply_filters( 'woocommerce_variable_children_args', $visible_only_args, $product, true ) );
    
    			set_transient( $children_transient_name, $children, DAY_IN_SECONDS * 30 );
    		}
    
    		$children['all']     = wp_parse_id_list( (array) $children['all'] );
    		$children['visible'] = wp_parse_id_list( (array) $children['visible'] );