woocommerce_variable_children_args хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_variable_children_args', 'filter_function_name_2344', 10, 3 ); function filter_function_name_2344( $all_args, $product, $false ){ // filter... return $all_args; }
- $all_args
- -
- $product
- -
- $false
- -
Где вызывается хук
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 ) );