WordPress at a glance
filter is not described

post_link_category filter-hook . WP 3.5.0

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


add_filter( 'post_link_category', 'filter_function_name_500', 10, 3 );
function filter_function_name_500( $cat, $cats, $post ){
	// filter...

	return $cat;
The category to use in the permalink.
Array of all categories (WP_Term objects) associated with the post.
The post in question.

Where the hook is called

wp-includes/link-template.php 191
$category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post );

Where the hook is used (in WP core)

Использование не найдено.