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:
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, get_all_category_ids

Top Google Results

User discussions

wpseek mobile