Block Restrictions for Groups and User Roles

If you are using the the Groups feature in PublishPress Permissions, you may see some differences between how the “Block” options are handled for groups and user roles.

By default, PublishPress Permissions does provide “Block” settings for user roles, but not for groups. In this guide, we'll explain how and why the “Block” settings are different for groups and user roles.

Differences between Groups and User Roles #

When editing a WordPress user role such as “Author”, you can set “Block” as an adjustment:

However, when you are editing a custom group, you will not find this adjustment:

Same thing happened when you tried to configure the permissions directly on the post type. For user roles, you will find the “Blocked” option, as in this screenshot:

However you will not find the same “Blocked” option for custom groups:

Why are these options not available for groups? #

The “Block” option is not available by default for groups because it can lead to overly complex configurations.

Our advice is that it's best to use “Block” for user roles.

If you do need the group blockage configuration, it can be enabled by adding this constant definition to wp-config.php (just below existing constant definitions):

define(‘PP_GROUP_RESTRICTIONS', true);

You can add the constant right before /* That's all, stop editing! Happy publishing. */

After adding that constant, you should be able to see “Block” on custom group.

Professional publishing plugins for WordPress! Get PublishPress