Core Function
View Source on Trac ↗ get_tags()
get_tags( mixed $args = '' ) Retrieves all post tags.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (string | array) $args { Optional. Arguments to retrieve tags. See get_terms() for additional options. Required |
Return Value
((WP_Term[])
(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.
Function Information
Since Version
2.3.0
Source File
wp-includes/category.php
Advertisement