Lock down your whole site, or just the parts that matter. Require login or a specific role for any content, show different menus and widgets to members and guests, and hide parts of a page with a shortcode.
Features
- Make your whole site private. Login and registration pages stay reachable
- Require login, or specific roles, for any post, page or custom post type
- Logged-out visitors are sent to the login page and brought back afterward
- Restricted posts are hidden from archives, your blog page, search, RSS feeds and the REST API, along with their comments
- Logged-in users without a required role are told they can’t view the post
- Show menu items and widgets to everyone, logged-in users, guests, or chosen roles
[tml-require-role]and[tml-require-user]show content to specific roles or users, with[else]content for everyone else