WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about post_link_category

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/link-template.php apply_filters 244 /**
* Filters the category that gets used in the %category% permalink token.
*
* @since 3.5.0
*
* @param WP_Term $cat The category to use in the permalink.
* @param array $cats Array of all categories (WP_Term objects) associated with the post.
* @param WP_Post $post The post in question.
*/

Hook Parameters

Parameter Type Name Description
WP_Term $cat The category to use in the permalink.
array $cats Array of all categories (WP_Term objects) associated with the post.
WP_Post $post The post in question.