rest_route_for_taxonomy_items WordPress Filter Hook

The rest_route_for_taxonomy_items hook is used to register a new route for retrieving taxonomy items. This hook is called when the WP_REST_Server class is instantiated.

apply_filters( 'rest_route_for_taxonomy_items', string $route, WP_Taxonomy $taxonomy ) #

Filters the REST API route for a taxonomy.


Parameters

$route

(string)The route path.

$taxonomy

(WP_Taxonomy)The taxonomy object.


Top ↑

Source

File: wp-includes/rest-api.php

View on Trac



Top ↑

Changelog

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

Show More