term_link filter-hook . WP 2.5.0
Filters the term link.
Usage
add_filter( 'term_link', 'filter_function_name_2045', 10, 3 ); function filter_function_name_2045( $termlink, $term, $taxonomy ){ // filter... return $termlink; }
- $termlink(string)
- Term link URL.
- $term(WP_Term)
- Term object.
- $taxonomy(string)
- Taxonomy slug.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
wp-includes/taxonomy.php 4443
return apply_filters( 'term_link', $termlink, $term, $taxonomy );
Where in WP core the hook is used WordPress
wp-includes/taxonomy.php 503
add_filter( 'term_link', '_post_format_link', 10, 3 );