get_the_tags WordPress Filter Hook

The get_the_tags hook is used to retrieve the tags for a post. This hook can be used in conjunction with the the_tags() template tag.

apply_filters( 'get_the_tags', WP_Term[]|false|WP_Error $terms ) #

Filters the array of tags for the given post.


Description

Top ↑

See also


Top ↑

Parameters

$terms

(WP_Term[]|false|WP_Error)Array of WP_Term objects on success, false if there are no terms or the post does not exist, WP_Error on failure.


Top ↑

Source

File: wp-includes/category-template.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.