Description
apply_filters( 'list_product_cats', $cat->name, $cat )
Parameters (2) (string), (string)
Usage Examples
To run the filter, copy this sample
$str = apply_filters( 'list_product_cats', $param1, $param2 ); if ( ! empty( $str ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter list_product_cats callback function filter_list_product_cats( $param1, $param2 ) { // do your thing here :-) ... return $str; } add_filter( 'list_product_cats', 'filter_list_product_cats', 10, 2 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'list_product_cats', 'filter_list_product_cats', 10, 2 );
Defined
This filter is defined in the following source file(s)
- wcvendors-pro/includes/class-wcvendors-pro-product-dropdown-walker.php line 37
$cat_name = apply_filters( 'list_product_cats', $cat->name, $cat );