How to Give Beaver Builder Users Access to One Page
The Beaver Builder plugin is an excellent good page-builder for WordPress sites.
This week, one PublishPress customer asked us if it was possible to allow some WordPress users to edit a single page with Beaver Builder.
However, more testing revealed that a workaround is needed for Beaver Builder. This is because Beaver Builder can only be used if you have the edit posts permission. The edit_posts permission enables you to edit posts and that is too much power for the user we want to create. We only want to allow access to one page.
Here is a workaround that you can use restrict access to Beaver Builder pages.
It's worth nothing a very similar technique also works for controlling access to Elementor pages. These page builders can add a little complexity to WordPress: it's easier to give specific permission to normal WordPress posts.
Step #1. Create a new user role
- Install the PublishPress Permissions Pro and PublishPress Capabilities Pro plugins.
- Go to the “Capabilities” link in your WordPress admin menu.
- Choose “Subscriber” in the dropdown in the top-left corner.
- Enter “Beaver Builder User” into the “Copy Subscriber Role” box.
- Click “Copy”.
- Under “Type-Specific Capabilities”, check the box saying “Use create_posts capability”.
- Click “Update”.
- In the “Editing Capabilities” area, check the box for “Edit” in the “Posts” row.
- Place a red X in all the other boxes of the “Posts” row.
What are we are doing here is giving the edit_posts permission, but also removing all the other key permissions.
Step #2. Give Access to Beaver Builder
Next, we will give our new user role the ability to use Beaver Builder:
- In your WordPress admin menu, go to “Settings” > “Beaver Builder” > “User Access”.
- Select “Beaver Builder User” from the two dropdown menus:
Now you can safely give users access to specific pages, and they will still be able to use Beaver Builder.
Step #3. Give Access to a Page
- Go to “Pages” in your WordPress admin menu.
- Edit a page.
- Scroll down to the “Permissions: Edit this Page” box.
- Choose “Enabled” for “Beaver Builder User”.
Step #4. Create and Test the User
- Go to “Users” in your WordPress admin area.
- Create a user in your new role.
Now it's time to test your new user. You can either login as the new user in different browser, or reply on a plugin such as User Switching.
When you login as your new user, this image shows what you will see. The user will have very limited access, but they will be able to edit the page you gave access to. They will be able to see the “Posts” screen but it will be completely blank for them. The PublishPress Permissions plugin is hiding any posts that they can not access.