Un motore di ricerca WordPress per sviluppatori e autori di temi



the_category_list ›

Da4.4.0
Deprecaton/a
apply_filters( 'the_category_list', get_the_category( $post_id )
Parametri: (2)
  • (WP_Term[]) $categories An array of the post's categories.
    Richiesto:
  • (int|bool) $post_id ID of the post we're retrieving categories for. When `false`, we assume the current post in the loop.
    Richiesto:
Definito a:
Codex:

Filters the categories before building the category list.





Sorgenti

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