To activate this feature go to Profile Builder -> Settings, click on the Content Restriction tab and then set the Content Restriction option to Yes.
The settings for this feature are present on the same page.
Content Restriction Page
Type of Restriction – set the default type of restriction
Message – show the user a custom message instead of the restricted content that he was trying to access
Redirect – define a page that users should be redirected to if they don’t have access to the content they were trying to access
Redirect URL – the default redirection when accessing a restricted post
Message for logged-out and logged-in users – the default message displayed instead of the post content when accessing a restricted post
Message for logged-in users – when user is logged-in but does not have the required user role
Tags that can be used in messages:
{{display_name}} – current user display name (if user is logged-in)
{{current_user_role}} – user role of the current user (if user is logged-in)
{{unrestricted_user_roles}} – display the user role(s) that can view the content
Restricted Posts Preview – show a portion of the restricted content, a number of words or the content before the “more” tag (if there is a “more” tag in that post)
Exclude Restricted Posts from Queries – When enabled, this setting hides restricted posts, products, or forums from appearing in public queries, such as WordPress archive and search pages, WooCommerce shop or product categories, and bbPress forums.
Content Restriction Meta-Box
Type of Restriction
Settings Default – take the type of restriction selected in the settings page
Choose a individual restriction type for this specific page / post / custom post type
Display For – restrict this page / post / custom post type for the logged-out users or for the users without a specific role
The Files Restriction Add-On allows you to restrict access to files in the WordPress Media Library and to files uploaded through Profile Builder’s Upload Field, based on user roles and login status. This ensures that sensitive files are only accessible to authorized users.
The File Restriction add-on is available with a Pro or Agency license for Profile Builder.
You can read more about this add-on on the following documentation page.
Restrict WooCommerce Products
This feature also supports WooCommerce Products so you can restrict access to them based on User Roles or the logged in status of the user. This works through the normal Content Restriction metabox that appears on Products (identic to the one that appears on posts/pages).
Create beautiful front-end registration and profile forms with custom fields. Setup member directories, custom redirects, cutomize user emails & more using the all in one user management plugin.