Code

RulesEngine - WordPress Access and Content Controller

RulesEngine - WordPress Access and Content Controller

RulesEngine – WordPress Access and Content Controller is a plugin suite contains Mega Enterprise Platform and 6 Rules Engine Addons designed to Super Charge your WordPress site. Site visitors/users are restricted for Pages, Custom Posts, Short codes, Widgets, Themes, Languages, Categories, Woo Products, and Site Redirection. Plugin also generates dynamic content including PopUps, Short Codes and provides Google Analytics AddOn to keep track your site traffic.

Visitors can be shown dynamic and specific Pages, Posts, Products, Widgets, Categories, Themes based on any combination of location (Country, State, City), language, IP, date, browser, mobile, user role, IF & ELSE, Metaboxes and many more… You can now have the dynamic presentation of your site like never before with zero coding necessary! CloudFlare CDN integration, WMLP compatible, Contact Forms, Caldera Forms, WordPress Multisite support, translation ready and high performance.

Works 100% with WP Rocket cached single and multisites and compatible with WooCommerce, WPML, WP Super Cache, W3 Total Cache and CloudFlare CDN.

Rules Engine is powered by Mega Platform which is a most advanced and versatile WordPress plugin that allows administrators to control elements of their WordPress site by the use of simple and complex rule logical rules.

  • Create rules with unlimited Scenarios.
  • Supports 37 different properties like Geo-location, User Role, Date & Time etc…Click here to know more
  • Create rule with 14 different logical conditions like AND, OR, EQUAL, NOT EQUAL etc…
  • Define complex rules using rule grouping.

Rules Engine AddOns

Custom Post Controller:

  • Allows dynamic control of WordPress Posts and Custom Posts based on properties such as user profile, geolocation of user and date/time, etc.
  • Supports simple rules based on singular properties, or complex rules based on mixed logical conditions based on multiple properties.
  • Supports hiding of posts.
  • Supports replacing posts and custom posts content.
  • Content Editor Filter is dynamically displaying the Short Codes or Content based on some business logic.

\\

Page Controller:

  • Allows dynamic control of pages based on properties such as user profile, geolocation of user and date/time, etc.
  • Supports simple rules based on singular properties, or complex rules based on mixed logical conditions based on multiple properties.
  • Supports soft hide feature, leaving pages accessible to those who have direct links.
  • Supports redirections, so restricted users are directed elsewhere.
  • Content Editor Filter is dynamically displaying the Short Codes or Content based on some business logic.

\\

Redirect Controller:

  • Using Redirect controller you will be able to redirect or even block your site visitors depending on different factors, such as their location (Continent, Country, State and City), language, IP, date, browser, mobile user, bulk or pattern redirect and more. Define redirect with almost everything like Geolocation, IP Address, Request URL, Third-Party URL, User Role, Guest User, Date and Time, Page, Post, Category etc with 37 different options and any combination.
  • Allows redirection of users based on properties such as user profile, geolocation of user and date/time, etc.
  • Supports simple rules based on singular properties, or complex rules based on mixed logical conditions with multiple properties.
  • Allows redirection based on device type.

\\

Category Controller:

  • Allows dynamic control of WordPress and WooCommerce categories based on properties such as user profile, geolocation and date/time, etc.
  • Supports simple rules based on singular properties or complex rules based on mixed logical conditions based on multiple properties.
  • Supports to hide categories.
  • Supports to show categories.

\\

Widget Controller:

  • Allows dynamic control of widgets based on properties such as user profile, geolocation of user and date/time, etc.
  • Supports simple rules based on singular properties, or complex rules based on mixed logical conditions based on multiple properties.
  • Supports hiding or replacing of widgets.
  • Supports hiding or replacing of widgets.

\\

Theme Controller:

  • Allows dynamic control of themes based on properties such as user profile, geolocation of user and date/time, etc.
  • Supports simple rules based on simple or complex rules based on mixed logical conditions based on multiple properties.
  • Supports showing different themes based on user’s device.
  • Show fancier themes for premium account subscribers.

\\

Customer Reviews:

Review1Review2Review3

How it works

Below is the example of Pages By Role hiding of page for a user with “Subscriber Role”.
  • First we should define a logical rule with role as Subscriber (see below screenshot)
  • Simple_Rule
  • Below screenshot depicts how we can leverage a defined “Subscriber Rule” Logical rule for defining rules for Pages. Below rule is used for hiding “Ad Manager” and “Contact Us” Pages for users with Subscriber role.
  • SubscriberHiddenPages
    We can further use the same “Subscriber Role” logical rule to define other child rules (Posts, Categories, Theme etc).

Defining a complex rule.

  • RulesEngine is very flexible for defining very complex logical rules using “AND” “OR” and “Brackets” operators. (e.g: Role is Administrator and Country is USA and Month is January, Page is Home etc, see below sreenshots.) See Logical rule section for more info.
  • \\
    RulesEngine also provides an utility method through which we can get the evaluated logical rule value in a single statement.
    RulesEngine::is_rule_valid(“Logical Rule Name”);
if(RulesEngine::is_rule_valid("USA and Asia Rule")) {
    echo "Condition satisfied";
}
where "USA and Asia Rule" is the name of the Logical Rule.
RulesEngine makes code very easy to maintain. we can add or update values in rule condition without modifying code.

Below is the code representation of above complex logical Rule. This code is hard to maintain and we need a developer to update the below logic.

if(($month === "January" || $month === "December") &&
    ($country === "United States" || $continent === "Asia") &&
    ($user_profile === $login_status || $user_role !== "Administrator") &&
    ($page_title === "home")) {

    echo "Condition satisfied";
}

Release Notes:

Rules Engine 1.2 – 15 Feb 2018 (Version # Reset)

1.Enhanced Redirect Controller with PopUp and Country Dropdown.
2.Enhanced Category Controller to include Woo Categories.
3.Enhanced Widget Controller to include Sidebar Controlling logic.
4.Enhanced Page & Post Controller to include IF ELSE conditions.
5.Bug fixes.

RulesEngine v4.9 – 30 May 2016

RulesEngine verion 4.8 includes below features.
1.Additional conditions (Contains Any Of) support add for IP Address.
2.Bug fixes.

RulesEngine v4.8 – 05 May 2016

RulesEngine verion 4.8 includes below features.
1.Additional conditions (Contains and does not contains) support add for Referral URL.
2.Bug fixes.

RulesEngine v4.5 – 12 March 2016

RulesEngine verion 4.5 is a major release and included below features.

1.New WordPress and WooCommerce category added, so that customer can define logical rule using categories. Using the categories customers can control page, widgets, redirect, posts etc.

2.New subcategory called Referral URL added, which enables customers to define rules using the source of request. The Referral URL can also from Third-Party websites.

3."At least Once" rule evaluation feature added in Logical Rules, which is useful if the customer want to perform action repeatedly if the rule is satisfied at-least once.

4.Bug fixes.

RulesEngine v4.1 – 12 February 2016

1.Fixed Plugin activation issue on only SSL enabled servers.
2.Increased rule value column to fit more values.
3.Fixed compatibility issue with Download Manager plugin.
4.Enhanced Guest User category to support Not Equal condition.
5.Other minor bug fixes.
RulesEngine v4.0 – 1 Jan 2016
  Minor Bug fixes.
RulesEngine v3.9 – November 16, 2015
1.Category rules hide feature: This feature will enable customers to hide the category but can be accessible using the direct URL and product/posts belongs to the soft hide category can be searched.
2.Redirect Rules. Now we can now add www in the redirect target url
3.WordPress 4.3.1 support.
4.Minor Bug fixes.
RulesEngine v3.7 – September 27, 2015
1.Soft Page Hide feature added: Using Soft Page Hide, we can hide the page/menu but can be accessible using 
direct URL.
2.WordPress 4.3 support.
3.Bug fixes.
RulesEngine v3.5 – August 09, 2015
Two new categories City and Region added. Now we can have
    1.Pages by City or Region.
    2.Posts by City or Region.
    3.Widgets by City or Region.
    4.Categories by City or Region.
    5.WooCommerce Categories by City or Region, extremely useful for Retail Online stores.
    6.Switch Theme by City or Region, Surprise your customer with custom theme specific to City.
    7.Redirect Users from a particular City or Region.     
RulesEngine v3.4 – July 27, 2015
      1.Products excluded from hidden categories.
      2.Hidden categories products are excluded from search.   
      3.Categories are grouped by Parent Categories.
RulesEngine v3.3 – July 17, 2015
      1.WooCommerce categories support for Category Rules.
      2.Bug fixes.

RulesEngine v3.0 – June 15, 2015

      1.Full edit feature is provided for Logical Rules, Now admin can redefine an existing rule.
      2.Dashboard page added for RuleEngine for better usability.
      3.Now admin can define Logical rules based on language.(i.e: Switch Theme by language, Hide pages by language etc.)        
      Note: This feature works for WordPress 4.0 and above.
      4.Now admin can define Logical rules based on IP Address.(i.e: Redirect using IP Address, Switch Theme by IP Address etc.)
      5.UI Facelift.
      6.Wordpress 4.2 support

RulesEngine v2.1 – April 18, 2015

      1.Auto cache clearing logic implemented. No need to clear browser cache for create or update of rules. 
      2.Minor bug fixes.

RulesEngine v2.0 – April 14, 2015

      1.Translation ready (Localization support for RulesEngine).
      2.Support for wordpress 3.7, 3.8 and 3.9.

RulesEngine v1.1 – March 23, 2015

    1.RulesEngine now supports defining the rules for ThirdParty Shortcodes.
       This feature is provided in Page and Post rules.
    2.Namespace added for Bootstrap css to resolve css conflict issues.
    3.Removed Bootstrap css from end user site.
    4.Bug fixes.
by
by
by
by
by
by