term_links-product_cat
This filter is documented in wp-includes/category-template.php
Usage
add_filter( 'term_links-product_cat', 'wp_kama_term_links_product_cat_filter' );
/**
* Function for `term_links-product_cat` filter-hook.
*
* @param $links
*
* @return
*/
function wp_kama_term_links_product_cat_filter( $links ){
// filter...
return $links;
}
- $links
- -
Where the hook is called
term_links-product_cat
woocommerce/includes/wc-product-functions.php 1935
$term_links = apply_filters( 'term_links-product_cat', $links ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores, WooCommerce.Commenting.CommentHooks.MissingSinceComment