wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



the_category_list › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'the_category_list', get_the_category( $post_id )
Parametry: (2)
  • () categories An array of the post's categories.
    Wymagane: Tak
  • () post_id ID of the post to retrieve categories for. When `false`, defaults to the current post in the loop.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the categories before building the category list.





Źródło

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