apply_filters( 'post_link_category', WP_Term $cat, array $cats, WP_Post $post )

Filters the category that gets used in the %category% permalink token.

Parameters Parameters


(WP_Term) The category to use in the permalink.


(array) Array of all categories (WP_Term objects) associated with the post.


(WP_Post) The post in question.

Top ↑

Source Source

File: wp-includes/link-template.php

View on Trac

Top ↑

Changelog Changelog

Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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