get_tags
get_tags ( $args = '' )
Parameters:- (string|array) args { Optional. Arguments to retrieve tags. See get_terms() for additional options. @type string $taxonomy Taxonomy to retrieve terms for. Default 'post_tag'. }
Returns:- (WP_Term[]|int|WP_Error) Array of 'post_tag' term objects, a count thereof, or WP_Error if any of the taxonomies do not exist.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Retrieves all post tags.