Skip to content

Commit

Permalink
Merge pull request #46 from happyprime/fix/20-remove-add-new
Browse files Browse the repository at this point in the history
Require custom capabilities to manage/edit/delete shadow terms
  • Loading branch information
jeremyfelt committed Feb 29, 2024
2 parents df83561 + f88c5b5 commit 6c96cca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ function register_taxonomy( string $post_type ): void {
'publicly_queryable' => false,
'rewrite' => false,
'hierarchical' => true,
'capabilities' => array(
'manage_terms' => 'override_shadow_terms',
'edit_terms' => 'override_shadow_terms',
'delete_terms' => 'override_shadow_terms',
),
'show_ui' => true,
'show_in_menu' => false,
'show_in_nav_menus' => false,
Expand Down

0 comments on commit 6c96cca

Please sign in to comment.