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_1777', 10, 3 );
function filter_function_name_1777( $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.

Список изменений

С версии 3.5.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

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