On this page
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 );
Related
Used By
| Used By | Description |
|---|---|
| get_permalink() wp-includes/link-template.php | Retrieves the full permalink for the current post or post ID. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_link_category