Skip to content

Commit

Permalink
Added back 'edit_cooked_settings' which was removed by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
XjSv committed Jun 27, 2024
1 parent dbe71d1 commit 3779558
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/class.cooked-roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public static function add_caps() {
$wp_roles->add_cap('editor', "edit_private_{$plural}");
$wp_roles->add_cap('editor', "delete_published_{$plural}");

$wp_roles->add_cap('administrator', 'edit_cooked_settings' ); // Cooked Settings
$wp_roles->add_cap('administrator', 'approve_cooked_recipes'); // Approve Recipes
$wp_roles->add_cap('administrator', "edit_{$singular}");
$wp_roles->add_cap('administrator', "edit_{$plural}");
Expand Down

0 comments on commit 3779558

Please sign in to comment.