tag_link WordPress Filter Hook
The tag_link hook is used to filter the link URL for a given tag.
apply_filters( 'tag_link', string $termlink , int $term_id ) #
Filters the tag link.
Parameters
- $termlink
(string)Tag link URL.
- $term_id
(int)Term ID.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
5.4.1 | Restored (un-deprecated). |
2.5.0 | Deprecated in favor of 'term_link' filter. |
2.3.0 | Introduced. |