get_categories


get_categories ( $args = '' )

Parameters:
  • (string|array) args { Optional. Arguments to retrieve categories. See get_terms() for additional options. @type string $taxonomy Taxonomy to retrieve terms for. Default 'category'. }
See:
  • get_terms()
Returns:
  • (array) List of category objects.
Defined at:

Description

Retrieves a list of category objects.If you set the 'taxonomy' argument to 'link_category', the link categories will be returned instead.

Related Functions

get_category, get_block_categories, wp_get_post_categories, get_category_link, wp_create_categories

Top Google Results

User discussions

wpseek mobile