wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



post_link_category › WordPress Filter Hooks

Seit3.5.0
Veraltetn/v
apply_filters( 'post_link_category', $cats[0], $cats, $post )
Parameter: (3)
  • (WP_Term) $cat The category to use in the permalink.
    Erforderlich: Ja
  • (array) $cats Array of all categories (WP_Term objects) associated with the post.
    Erforderlich: Ja
  • (WP_Post) $post The post in question.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

$category_object = apply_filters( 'post_link_category', $cats[0], $cats, $post );