Filters the REST API route for a taxonomy.
Parameters
$route
string- The route path.
$taxonomy
WP_Taxonomy- The taxonomy object.
Source
if ( ! $taxonomy->show_in_rest ) {
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
Filters the REST API route for a taxonomy.
$route
string$taxonomy
WP_Taxonomyif ( ! $taxonomy->show_in_rest ) {
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.