Skip to content

Commit

Permalink
Update taxonomies to have the default capability
Browse files Browse the repository at this point in the history
  • Loading branch information
renatho committed Jun 6, 2024
1 parent 179f7e5 commit ec1b70e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions includes/class-sensei-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -2179,12 +2179,6 @@ public function setup_modules_taxonomy() {
'public' => true,
'hierarchical' => true,
'show_admin_column' => false,
'capabilities' => array(
'manage_terms' => 'manage_categories',
'edit_terms' => 'edit_courses',
'delete_terms' => 'manage_categories',
'assign_terms' => 'edit_courses',
),
'show_in_nav_menus' => false,
'show_in_quick_edit' => false,
'show_ui' => true,
Expand Down
18 changes: 0 additions & 18 deletions includes/class-sensei-posttypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,12 +686,6 @@ public function setup_course_category_taxonomy() {
'show_in_menu' => false,
'query_var' => true,
'show_in_nav_menus' => true,
'capabilities' => array(
'manage_terms' => 'manage_categories',
'edit_terms' => 'edit_courses',
'delete_terms' => 'manage_categories',
'assign_terms' => 'edit_courses',
),
'rewrite' => array(
/**
* Filter the rewrite slug for the course category taxonomy.
Expand Down Expand Up @@ -838,12 +832,6 @@ public function setup_question_category_taxonomy() {
'show_in_nav_menus' => false,
'show_admin_column' => true,
'show_in_rest' => true,
'capabilities' => array(
'manage_terms' => 'manage_categories',
'edit_terms' => 'edit_questions',
'delete_terms' => 'manage_categories',
'assign_terms' => 'edit_questions',
),
'rewrite' => array(
/**
* Filter the rewrite slug for the question category taxonomy.
Expand Down Expand Up @@ -891,12 +879,6 @@ public function setup_lesson_tag_taxonomy() {
'show_ui' => true,
'query_var' => true,
'show_in_nav_menus' => true,
'capabilities' => array(
'manage_terms' => 'manage_categories',
'edit_terms' => 'edit_lessons',
'delete_terms' => 'manage_categories',
'assign_terms' => 'edit_lessons',
),
'rewrite' => array(
/**
* Filter the rewrite slug for the lesson tag taxonomy.
Expand Down

0 comments on commit ec1b70e

Please sign in to comment.