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
Source
File: wp-includes/link-template.php
.
View all references
$category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post );
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |