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.


Top ↑

Source

File: wp-includes/taxonomy.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.4.1Restored (un-deprecated).
2.5.0Deprecated in favor of 'term_link' filter.
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More