woocommerce_variable_children_args, $all_args, $product, false

woocommerce_variable_children_args, $all_args, $product, false

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_variable_children_args, $all_args, $product, false') is found 1 times:

  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 211
    			 * @param array      $args            Query arguments for get_posts().
    			 * @param WC_Product $product         The variable product object.
    			 * @param bool       $visible_only    True when retrieving only visible variations, false for all variations.
    			 */
    			$children['all'] = get_posts( apply_filters( 'woocommerce_variable_children_args', $all_args, $product, false ) );
    
    			// phpcs:disable WooCommerce.Commenting.CommentHooks
    			$children['visible'] = get_posts( apply_filters( 'woocommerce_variable_children_args', $visible_only_args, $product, true ) );
    
    			// Validate the children data before storing it in the transient.
    			if ( $this->validate_children_data( $children, $transient_version ) ) {