wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



the_category_list › Hooks de Filtros WordPress

Desde4.4.0
Obsoleton/a
› apply_filters( 'the_category_list', get_the_category( $post_id )
Parâmetros: (2)
  • () categories An array of the post's categories.
    Required: Yes
  • () post_id ID of the post to retrieve categories for. When `false`, defaults to the current post in the loop.
    Required: Yes
Definido em:
Codex:

Filters the categories before building the category list.





Fonte

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