Skip to content

Commit

Permalink
Capabilities: Update "Designer" role to grant access to private content.
Browse files Browse the repository at this point in the history
Fixes #499
  • Loading branch information
ryelle committed Sep 13, 2024
1 parent 2d6ca58 commit 1c59ebf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/wp-content/themes/wporg-main-2022/inc/capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ function get_designer_role_caps() {

$role_caps['edit_published_pages'] = true;
$role_caps['edit_others_pages'] = true;
$role_caps['read_private_pages'] = true;
$role_caps['read_private_posts'] = true;
$role_caps['edit_private_pages'] = true;
$role_caps['edit_private_posts'] = true;
$role_caps['publish_pages'] = true;
$role_caps['edit_pages'] = true;
unset( $role_caps['delete_posts'] ); // Mainly to prevent deleting media
Expand Down

0 comments on commit 1c59ebf

Please sign in to comment.