Uses
Uses | Description |
---|---|
wp-includes/taxonomy.php: get_taxonomy() | Retrieves the taxonomy object of $taxonomy. |
Checks that the taxonomy is valid.
(string) (Required) Taxonomy to check.
(bool) Whether the taxonomy is allowed for REST management.
File: wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
protected function check_is_taxonomy_allowed( $taxonomy ) { $taxonomy_obj = get_taxonomy( $taxonomy ); if ( $taxonomy_obj && ! empty( $taxonomy_obj->show_in_rest ) ) { return true; } return false; }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_terms_controller/check_is_taxonomy_allowed