woocommerce_variable_children_args filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_variable_children_args', 'filter_function_name_9093', 10, 3 ); function filter_function_name_9093( $all_args, $product, $false ){ // filter... return $all_args; }
- $all_args
- -
- $product
- -
- $false
- -
Where the hook is called
woocommerce_variable_children_args
woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php 147
$children['all'] = get_posts( apply_filters( 'woocommerce_variable_children_args', $all_args, $product, false ) );
woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php 148
$children['visible'] = get_posts( apply_filters( 'woocommerce_variable_children_args', $visible_only_args, $product, true ) );