W3cubDocs

/WordPress

apply_filters( ‘category_link’, string $termlink, int $term_id )

Filters the category link.

Parameters

$termlinkstring
Category link URL.
$term_idint
Term ID.

Source

$termlink = apply_filters( 'category_link', $termlink, $term->term_id );

Changelog

Version Description
5.4.1 Restored (un-deprecated).
2.5.0 Deprecated in favor of 'term_link' filter.
1.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/category_link