Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_the_tags

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1167       * Filters the array of tags for the given post.
1168       *
1169       * @since 2.3.0
1170       *
1171       * @see get_the_terms()
1172       *
1173       * @param WP_Term[]|false|WP_Error $terms Array of WP_Term objects on success, false if there are no terms
1174       *                                        or the post does not exist, WP_Error on failure.
1175       */
1176      return apply_filters( 'get_the_tags', $terms );
1177 }
1178
1179 /**
1180  * Retrieves the tags for a post formatted as a string.
1181  *
1182  * @since 2.3.0
1183  *
1184  * @param string $before  Optional. String to use before the tags. Default empty.
1185  * @param string $sep     Optional. String to use between the tags. Default empty.