the_tags WordPress Filter Hook

The the_tags hook is a great way to add tags to your WordPress posts. This hook allows you to add tags to your posts without having to edit the post itself. You can add as many tags as you want, and they will be automatically added to the post.

apply_filters( 'the_tags', string $tag_list, string $before, string $sep, string $after, int $post_id ) #

Filters the tags list for a given post.


Parameters

$tag_list

(string)List of tags.

$before

(string)String to use before the tags.

$sep

(string)String to use between the tags.

$after

(string)String to use after the tags.

$post_id

(int)Post ID.


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.