I plan on making a site with the upfront theme editor.

I plan on making a site with the upfront theme editor. I have content managers that will manage areas of the site. I want them to have the ability to make new pages and add content. I do not want them to have access to upfront in order change the layout. How do I block the access that allows you to customize the theme with upfront?T
Thanks!

  • Sajid

    Hi @Rob! Hope you are doing good today :slight_smile:

    Out of the box there is no settings to enable upfront for some users and disable it for others. Beside a code snippet that lies in functions.php file of your child theme or using mu-plugin.

    function my_upfront_single_user_limit ($perms) {
    	if (1312 !== get_current_user_id()) return array(Upfront_Permissions::DEFAULT_LEVEL => false);
    	else return $perms;
    }
    add_filter('upfront-access-permissions_map', 'my_upfront_single_user_limit');

    This filter can limit the editor usage to a particular user only. 1312 is ID of a user.

    Hope it helps :slight_smile:

    Cheers, Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.