woocommerce_variable_children_args, $visible_only_args, $product, true

woocommerce_variable_children_args, $visible_only_args, $product, true

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_variable_children_args, $visible_only_args, $product, true') is found 1 times:

  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 214
    			 */
    			$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 ) ) {
    				set_transient( $children_transient_name, $children, DAY_IN_SECONDS * 30 );
    			}
    		}