WP Brain - WordPress Logic Controller — is a revolutionary tool for WordPress developers and power-users that provides a comprehensive framework for applying conditional logic across your entire website. It allows you to control the visibility and behavior of any element—from widgets and menu items to entire content blocks—based on a wide array of conditions. This means you can create highly tailored experiences for your visitors without needing to write complex PHP functions or modify theme files.
The core of WP Brain is its powerful, yet easy-to-use, logic builder. You can combine multiple conditions using AND/OR operators to create sophisticated rules. For instance, you can show a special offer only to users who are logged in, visiting from a specific country, and using a mobile device. The plugin seamlessly integrates with the WordPress ecosystem, including posts, pages, users, and even third-party plugin data, making it an indispensable tool for building intelligent, responsive, and personalized websites.
Why This Is Important
In today's digital landscape, a generic "one-size-fits-all" website is no longer effective. Users expect personalized experiences that cater to their specific needs and context. Without a tool like WP Brain, developers are often stuck with time-consuming custom coding or a patchwork of single-purpose plugins to achieve dynamic content. This leads to bloated websites, maintenance headaches, and security risks.
Consider the statistics: according to a study by McKinsey, personalization can lift revenues by 5-15% and increase marketing spend efficiency by 10-30%. By failing to personalize, you're not just providing a subpar user experience; you're leaving money on the table. WP Brain solves this pain point by centralizing all your conditional logic into one powerful, optimized, and secure interface, enabling you to boost engagement and conversions with minimal effort.
Features
- No-Code Logic Builder: Create complex conditional rules with an intuitive drag-and-drop interface. No PHP knowledge required.
- Extensive Condition Library: Utilize over 50+ built-in conditions, including user roles, device type, geo-location, post category, and more.
- Widget & Menu Visibility Control: Easily show or hide widgets and navigation menu items based on your defined logic.
- Content Restriction Shortcodes: Wrap any content in a shortcode to control its visibility for different user segments.
- PHP Function Integration: For advanced users, allows the execution of custom PHP functions or evaluation of boolean expressions as conditions.
- Date & Time Scheduling: Display content for a specific period, perfect for promotions, events, or seasonal offers.
- WooCommerce Integration: Create rules based on cart contents, purchase history, and total spending for targeted e-commerce marketing.
- Developer API: Extend the plugin's functionality with your own custom conditions and integrations.
- Lightweight & Optimized: Built for performance, ensuring that complex logic doesn't slow down your website.
- Import/Export Logic Sets: Easily migrate your conditional rules between different websites or create backups.
Free vs. Pro: What's the Difference?
| Feature | Free Version (This one) | Pro Version |
|---|---|---|
| Core Logic Engine | ✔ (Up to 3 conditions per rule) | ✔ (Unlimited conditions) |
| Basic Conditions (User Role, Page, Date) | ✔ | ✔ |
| Content Restriction Shortcode | ✔ | ✔ |
| Advanced Conditions (Geo-location, Referrer, Device) | ❌ | ✔ |
| WooCommerce Integration | ❌ | ✔ |
| Custom PHP Conditions | ❌ | ✔ |
| Widget Visibility Control | ✔ | ✔ |
| Menu Item Visibility Control | ❌ | ✔ |
| Priority Support | ❌ | ✔ |
How to install the plugin?
- Download the plugin archive using the button above.
- Navigate to Plugins > Add New in your WordPress dashboard.
- Click "Upload Plugin" at the top and select the downloaded ZIP file.
- Install, activate the plugin, and follow the quick setup wizard instructions.
FAQ
What is a simple example of how I can use WP Brain?
A great starting example is creating a personalized welcome message. You can set up a rule to display a specific content block on your homepage with the condition "If User Role is Subscriber" and "If User has logged in before". This way, returning subscribers see a friendly "Welcome back!" message, while new visitors see the standard greeting. It's a simple way to increase user engagement.
Will this plugin slow down my website?
WP Brain is engineered with performance in mind. The conditional checks are highly optimized and only run when necessary. For a typical website with a reasonable number of rules, the impact on page load time is negligible. However, creating an excessive number of extremely complex rules (e.g., dozens of conditions per page) could potentially add a minor delay, as with any logic-intensive process.
Can I use WP Brain to restrict access to entire pages?
While WP Brain is primarily designed for controlling elements *within* a page (like widgets or content blocks), you can achieve page-level restriction. The most common method is to wrap the entire page's content within the plugin's conditional shortcode. For more robust, site-wide access control, it's often better to use a dedicated membership plugin, which WP Brain can then complement by controlling specific elements on the pages those members can see.
Is WP Brain compatible with page builders like Elementor or WPBakery?
Yes, absolutely. WP Brain works independently of page builders and can control any content generated by them. You can use the conditional shortcodes directly inside text modules or HTML blocks within your favorite page builder. This allows you to show or hide entire sections, rows, or individual modules created with Elementor, WPBakery, Beaver Builder, and others, based on WP Brain's logic.