The WordPress Posts & WooCommerce Products Limit Access / Scheduler (WPPS) plugin offers comprehensive functionalities to schedule and restrict access to posts, custom posts and WooCommerce products. Here is a summary of its key features and how it works:
Key Features:
- Scheduling Rules Configurator: Provides an interface within the WordPress dashboard (under a “Scheduler” menu) for setting scheduling rules.
- Scheduling Options: Allows scheduling rules for automatic publishing/unpublishing of posts, custom posts, and items based on date rules and user roles.
- User Role Restrictions: Allows administrators to restrict access to certain content based on user roles, redirecting them if needed.
- Unpurchasable Option for WooCommerce: Provides the ability to mark WooCommerce products as “Unpurchasable,” removing the “add to cart” button for certain user roles.
- Product Visibility Control: Allows administrators to control the visibility of products, either making them purchasable or unpublished before and after the “Unpurchasable” duration.
- Custom Messages: Offers the option to display custom messages on product and shop pages during the “Unpurchasable” period.
- Scheduling/Restrict Access Rules: Administrators can assign multiple scheduling rules to posts/products based on selection, categories, assignment strategy, and dates.
- Date Scheduling: Enables setting specific scheduling dates for different periods, allowing the allocation of different visibility states (published/unpublished) for each period.
Example Use Case:
Example 1: WooCommerce Products Timing
The shop admin wants to make a product available only between 09:00 to 18:00 and unpublished for the rest of the day and on December 25th every year.
Steps to Set Rules:
- Create a New Rule:
- Type: WooCommerce product
- Select the product(s) or categories
- Set Scheduling Rule for Available Time:
- Published https for specific times (09:00 to 18:00) every day:
- User Roles: Unselected
- Start Date: Day of the Week, All days, All months, 09:00 to 17:59
- Invert https item(s) during unmatched time: Yes
- Unpublished https for the remaining time:
- Start Date: Day of the month, 25th December, 09:00 to 00:00
- Published https for specific times (09:00 to 18:00) every day:
These steps define the rules to make a WooCommerce product available from 09:00-18:00 every day and unavailable the rest of the time and on December 25th.
This plugin offers a comprehensive solution for managing content visibility and scheduling, especially useful for controlling WooCommerce product availability based on specific time zones and user roles.