The Restrict plugin makes it easy for you to control and protect access to the content of posts, pages and custom post types.
You can restrict, show and hide content to:
- Everyone (all website visitors)
- Logged in users
- Users with a specific role (administrator, editor, author, subscriber, etc)
- Users with a specific capability
- Author of a post / page
- Tickera users (who purchased any ticket, any ticket for a specific event or a specific ticket type)
- WooCommerce users (who made any purchase or who purchased a specific product)
- WooCommerce users with limited time access to the content after they made a purchase of specific product
- Easy Digital Downloads users (who made any purchase or who purchased a specific product)
- Easy Digital Downloads users with limited time access to the content after they made a purchase of specific product
Restrict has seamless integrations with Tickera Event Ticketing System for WordPress, Easy Digital Downloads, WooCommerce allowing you to restrict the sensitive content of pages or posts based on criteria specific for these plugins (i.e. show content to users who purchased a specific ticket or WooCommerce product). Also, Restrict has integration with Simple URLs. With this integration, you can create a redirection in SimpleURLs plugin and then restrict access to that redirect so that if the customer attempts to access redirect URL without fulfilling the required criteria, you can set in Restrict whether to display them a specific page or redirect them to some other, specific URL.
Premium version features
- Restrict whole post type at once – the post types area of Restrict plugin allows you to select the default content visibility to the existing post types on your website.
- Restrict part or all the content (Shortcodes) – Easily restrict just part of the content on any of your pages or posts making it possible to use the same page or post but with different content based on the set criteria.
- Restricting a whole post category – If you want to restrict the whole post category, the premium version of Restrict plugin takes care of that too, allowing you to easily set the criteria based on which a certain post category will be displayed or hidden.
- Hide and show widgets conditionally – Make your widgets show or disappear for different users! Similarly to the content restriction, you can also restrict which widgets will be shown to what user.
- Display menu items conditionally – You can set different criteria for each menu item and make them displayed or hidden to logged in users, certain user roles, users with specific capability and even logged out users.
- Login form anywhere – Regardless of whether you’re using Gutenberg or classic editor, we made it easy for you to place the login form on any of your pages or posts.
- Site Lock – Lock the entire website in one simple click and make it accessible only to logged in users! Similarly, you can also restrict access to REST API to only logged in users.
- White label option
Stuck? Check out the plugin documentation
- Install plugin
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Admin > Restrict to set up different restriction messages
- Add restrictions to your posts, pages or various custom post types
Contributors & Developers
“Restrict – membership, site, content and user access restrictions for WordPress” is open source software. The following people have contributed to this plugin.Contributors
Translate “Restrict – membership, site, content and user access restrictions for WordPress” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- Gutenberg block elements: Update deprecated InspectorControls and serverSideRender.
- PHP Warning: “Trying to access array offset” appearing in admin page. [Fixed]
- “Content Available To” setting: Append ProductID at “Tickera Users” and “Woocommerce Users” Multi-select dropdown menu.
- Clearing PHP Deprecated Notice: Required parameter follows optional parameter.
- WordPress 6.0 compatibility
- Freemius SDK update
- Fixed white label feature
- Tested up to 5.7.2 version of WordPress
- Tested up to 5.6.1 version of WordPress
- Added new premium feature: bots & web crawlers exclusions which (optionally) allow access to your site content by search engines and benefit from SEO juice even from protected / hidden content.
- Fixed issue with WooCommerce SPECIFIC PRODUCT (LIMITED TIME) message
- Added integration with Easy Digital Downloads plugin (https://wordpress.org/plugins/easy-digital-downloads/)
- Added support for Page Builder by SiteOrigin plugin (https://wordpress.org/plugins/siteorigin-panels/)
- Fixed conflict with “Yoast SEO” plugin (restricted select box was invisible on edit category page when Yoast plugin is active)
- Fixed deprecated hook notice (edit_category_form_fields)
- Added time limit option for WooCommerce products
- Fix for automatic updates of the free version (clients with previous versions need to update it manually first)
- Fixed bug with WooCommerce categories
- Fixed issue with rendering Elementor shortcodes as a restricted messages (now supports Shortcode Elementor https://wordpress.org/plugins/shortcode-elementor/, AnyWhere Elementor https://wordpress.org/plugins/anywhere-elementor/ and similar plugins)
- Added integration for Simple URLs plugin (https://wordpress.org/plugins/simple-urls/)
- Removed “Content available to” select box from the shop_order post type (and similar post types where the box isn’t needed)
- Added global restriction for post types at once (premium version)
- Added restriction for WooCommerce shop page (which is actually product archive page shown via template)
- Various code improvements
- Added restriction to post / page author (and the administrators)
- Added white label option in the premium version. Usage: just put a define(‘RSC_PLUGIN_TITLE’, ‘Custom Name’);
- Added new placeholders for WooCommerce (rsc_woo_product_links) and Tickera (rsc_tc_event_links) so you can now show products / events titles with links
- Small wording changes on the general page (admin area)
- Tested up to WordPress 5.4.1
- Fixed bug with WooCommerce post / page restrictions (when a specific product is selected)
- Fixed bug with Tickera post / page restrictions (when a specific ticket type / event is selected)
- IMPORTANT UPDATE: fixed the issue with saving and merging saved options
- Fixed fatal error in the FREE version upon activation
- Code refactoring
- Upgraded one-line text messages with the WP Editor
- Added option to hide post comments for restricted posts
- Styling changes
- Freemius integration
- Rebrended from “Restricted Content” to “Restrict”
- Tested for WordPress 5.3.2
- Removed restricted content from tc_order custom post type
- Added new hook for developers (rsc_skip_post_types)
- Fixed wp_localize_script var
- Updated language file
- Fixed issue with empty restriction messages
- Removed content availability box from Tickera ticket type screen in the admin
- First release