Filters the category that gets used in the %category% permalink token.
$category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post );
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_link_category