woocommerce_get_children
Usage
add_filter( 'woocommerce_get_children', 'wp_kama_woocommerce_get_children_filter', 10, 3 );
/**
* Function for `woocommerce_get_children` filter-hook.
*
* @param $children
* @param $that
* @param $false
*
* @return
*/
function wp_kama_woocommerce_get_children_filter( $children, $that, $false ){
// filter...
return $children;
}
- $children
- -
- $that
- -
- $false
- -
Where the hook is called
woocommerce_get_children
woocommerce_get_children
woocommerce/includes/class-wc-product-variable.php 234
return apply_filters( 'woocommerce_get_children', $this->children, $this, false );
woocommerce/includes/class-wc-product-variable.php 251
return apply_filters( 'woocommerce_get_children', $this->visible_children, $this, true );