the_terms WordPress Filter Hook

The the_terms hook is used to display a list of terms associated with a post. It can be used in conjunction with the get_terms function to retrieve a list of terms for a given post.

apply_filters( 'the_terms', string $term_list, string $taxonomy, string $before, string $sep, string $after ) #

Filters the list of terms to display.


Parameters

$term_list

(string)List of terms to display.

$taxonomy

(string)The taxonomy name.

$before

(string)String to use before the terms.

$sep

(string)String to use between the terms.

$after

(string)String to use after the terms.


Top ↑

Source

File: wp-includes/category-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.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.