tag_link filter-hook . WP 2.3.0
Filters the tag link.
Usage
add_filter( 'tag_link', 'filter_function_name_4073', 10, 2 ); function filter_function_name_4073( $termlink, $term_id ){ // filter... return $termlink; }
- $termlink(string)
- Tag link URL.
- $term_id(int)
- Term ID.
Changelog
Since 2.3.0 | Introduced. |
Since 2.5.0 | Deprecated in favor of {@see 'term_link'} filter. |
Since 5.4.1 | Restored (un-deprecated). |
Where the hook is called
wp-includes/taxonomy.php 4418
$termlink = apply_filters( 'tag_link', $termlink, $term->term_id );