Changing who can access your client proofing collections

If you work in a team, it’s quite possible that more than one person has access to your website. By default, only administrators have access to picu proofing collections.

But chances are that the person who manages your client proofing are not also administrators to your website, and so you would like to change who’s got access to picu and the proofing galleries. Luckily, there’s an easy way to change this, using a filter.

WordPress provides some default user roles, each of which has their own capabilities, which you can find here in the WordPress Handbook.

As said, by default we restrict access to proofing collections to site administrators (or, everyone with the capability: “manage_options“). If you would like to change this to – let’s say – the editor user role (capability: “edit_posts“), you can do so like this:

function my_picu_custom_capability() {
    return 'edit_posts';
}
add_filter( 'picu_capability', 'my_picu_custom_capability' );Code language: JavaScript (javascript)

IMPORTANT: Make sure to add this code to a custom plugin, or by using the code snippets plugin, to make sure the changes don’t get overwritten by future theme updates.

Posted in:

Related Posts

These posts could interest you as well, read on to get the full picture.

  • Leaving Twitter/X

    Twitter/X has been one of our primary social “homes” for a while, where we posted most of our updates. For various reasons, we decided to leave Twitter/X starting from January 2025 – here’s why.

    Read more

  • Update – December 2024

    With the end of the year approaching, I wanted to take a step back and look at some of the things we achieved this year and give you a sneak peek into what we are working on at the moment. WordCamp Europe 2024 In June, we attended WordCamp Europe 2024 in Torino, where we met…

    Read more

No newline at end of file