taxonomy_labels_{$taxonomy} WordPress Filter Hook

The taxonomy_labels_{$taxonomy} hook is used to filter the labels for a given taxonomy. This can be useful for customizing the labels for a custom taxonomy.

apply_filters( "taxonomy_labels_{$taxonomy}", object $labels ) #

Filters the labels of a specific taxonomy.


Description

The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.

Possible hook names include:

  • taxonomy_labels_category
  • taxonomy_labels_post_tag

Top ↑

See also


Top ↑

Parameters

$labels

(object)Object with labels for the taxonomy as member variables.


Top ↑

Source

File: wp-includes/taxonomy.php

View on Trac



Top ↑

Changelog

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

Show More
Show More