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: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Retrieves a list of category objects.If you set the 'taxonomy' argument to 'link_category', the link categories
will be returned instead.