Private Website

Activating Private Website

The Private Website feature is available starting with version 2.8.9 of Profile Builder Free, Hobbyist and Pro

To activate this feature go to Profile Builder -> Settings -> Private Website tab and select Yes for the “Enable Private Website” dropdown, then click Save Changes. Once activated the entire website, including RSS Feeds and the REST API, will be available only to logged in users.

Redirect to

This setting allows you to choose where the visitor redirects to if not logged in. The default setting for this is the wp-login.php page and the other options in the dropdown are all the published pages of your website. If you switch from the default we recommend the selected page contains the [wppb-login] shortcode.

You can force access to wp-login.php so you don’t get locked out of the site by accessing the link:

http://yoursite.com/wp-login.php?wppb_force_wp_login=true

Allowed Pages

With this setting you can choose pages from your website that are still accessible even if the visitor is not logged in. A useful example would be a Register Page.

Hide all Menus

With this option you can select to hide all menu items if you are not logged in. This is useful if you don;t want any other links to appear on the frontend login page you selected.
If you need different menu items for logged in / logged out users we recommend the Custom Profile Menus add-on.

Enable REST API

To re-enable the REST API add the following code in your functions.php file or a custom plugin:

1
2
remove_filter('rest_enabled', 'wppb_disable_rest');
remove_filter('rest_jsonp_enabled', 'wppb_disable_rest');