wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



post_link_category › Les Filtres WordPress

Depuis3.5.0
Dépréciéen/a
› apply_filters( 'post_link_category', $cats[0], $cats, $post )
Paramètres: (3)
  • () cat The category to use in the permalink.
    Requis: Oui
  • () cats Array of all categories (WP_Term objects) associated with the post.
    Requis: Oui
  • () post The post in question.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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