get_tags WordPress Filter Hook

The get_tags WordPress hook is used to retrieve the tags for a post. This hook can be used in conjunction with the the_tags() function to display the tags for a post.

apply_filters( 'get_tags', WP_Term[]|int|WP_Error $tags, array $args ) #

Filters the array of term objects returned for the ‘post_tag’ taxonomy.


Parameters

$tags

(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.

$args

(array)An array of arguments. @see get_terms()


Top ↑

Source

File: wp-includes/category.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.