apply_filters( ‘get_the_tags’, WP_Term[]|false|WP_Error $terms )

Filters the array of tags for the given post.

Description

See also

Parameters

$termsWP_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.

Source

return apply_filters( 'get_the_tags', $terms );

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.