wpseek.com
A WordPress-centric search engine for devs and theme authors
get_tags › WordPress Function
Since2.3.0
Deprecatedn/a
› get_tags ( $args = '' )
Parameters: |
|
See: | |
Returns: |
|
Defined at: |
|
Codex: |
Retrieves all post tags.
Source
function get_tags( $args = '' ) { $tags = get_terms( 'post_tag', $args ); if ( empty( $tags ) ) { $return = array(); return $return; } /** * Filters the array of term objects returned for the 'post_tag' taxonomy. * * @since 2.3.0 * * @param WP_Term[]|int $tags Array of 'post_tag' term objects, or a count thereof. * @param array $args An array of arguments. @see get_terms() */ $tags = apply_filters( 'get_tags', $tags, $args ); return $tags; }