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



the_category_list › Les Filtres WordPress

Depuis4.4.0
Dépréciéen/a
› apply_filters( 'the_category_list', get_the_category( $post_id )
Paramètres: (2)
  • () categories An array of the post's categories.
    Requis: Oui
  • () post_id ID of the post to retrieve categories for. When `false`, defaults to the current post in the loop.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the categories before building the category list.





Source

$categories = apply_filters( 'the_category_list', get_the_category( $post_id ), $post_id );