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.

  • Local SEO for Photographers

    If you’re a photographer, there’s a pretty good chance that most of your clients are local. You might specialize in weddings, portraits, or commercial shoots. No matter your niche, people searching for your services are often looking for someone nearby. And where do they look? Google Search and Google Maps. So, if your business isn’t…

    Read more

  • Update – March 2025

    Here’s another quick update on what we’ve been up to in March. There were a few unforeseen challenges we experienced this month, which is why we had to delay some things into April. Namely, our custom block to list collections and the next Alpha version of picu Pro – including Taxes for E-commerce. Read on…

    Read more