register_{$taxonomy}_taxonomy_args WordPress Filter Hook

The register_{$taxonomy}_taxonomy_args hook allows you to modify the arguments used when registering a taxonomy. This can be useful if you need to change the labels or capabilities associated with the taxonomy.

apply_filters( "register_{$taxonomy}_taxonomy_args", array $args, string $taxonomy, string[] $object_type ) #

Filters the arguments for registering a specific taxonomy.


Description

The dynamic portion of the filter name, $taxonomy, refers to the taxonomy key.

Possible hook names include:

  • register_category_taxonomy_args
  • register_post_tag_taxonomy_args

Top ↑

Parameters

$args

(array)Array of arguments for registering a taxonomy. See the register_taxonomy() function for accepted arguments.

$taxonomy

(string)Taxonomy key.

$object_type

(string[])Array of names of object types for the taxonomy.


Top ↑

Source

File: wp-includes/class-wp-taxonomy.php

View on Trac



Top ↑

Changelog

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