post_link_category

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'post_link_category', WP_Term $cat, array $cats, WP_Post $post )

Parameters Parameters

$cat

The category to use in the permalink.

$cats

Array of all categories (WP_Term objects) associated with the post.

$post

The post in question.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Advertisement

Leave a Reply