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

In this article

Filters the category link.

Parameters

$termlinkstring
Category link URL.
$term_idint
Term ID.

Source

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

Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.