Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Hide taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Jun 14, 2019
1 parent aa0d20f commit 98404de
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/class-wp-rest-menus-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,8 @@ public function get_item_schema() {
$schema = parent::get_item_schema();
unset( $schema['properties']['count'] );
unset( $schema['properties']['link'] );
$schema['properties']['taxonomy'] = array(
'description' => __( 'Type attribution for the term.' ),
'type' => 'string',
'enum' => array_keys( get_taxonomies() ),
'context' => array( 'embed', 'edit' ),
'readonly' => true,
);

unset( $schema['properties']['taxonomy'] );

return $schema;
}
}

0 comments on commit 98404de

Please sign in to comment.