showyaseen / intelli-builder

A WordPress plugin designed to control the visibility of Gutenberg blocks based on various user-defined rules.
1 stars 0 forks source link

IntelliBuilder Documentation


Introduction

IntelliBuilder is a WordPress plugin designed to control the visibility of Gutenberg blocks based on various user-defined rules. By implementing Gutenberg hooks and filters, IntelliBuilder allows administrators to add visibility settings to each Gutenberg block. This feature is particularly useful for creating dynamic and personalized content experiences on WordPress websites.

Now Available on WordPress.org! You can download and install IntelliBuilder directly from the WordPress Plugin Repository to start enhancing your site's content visibility today.


User Documentation and Usage

Using IntelliBuilder:

  1. Access the Editor: Open the WordPress editor and create or edit a post or page using the Gutenberg block editor.
  2. Select a Block: Choose the Gutenberg block you want to control visibility for.
  3. Configure Visibility Settings:
    • In the block settings panel on the right, locate the "Conditional Visibility Settings" section.
    • Configure visibility rules based on:
      • User Roles: Show or hide the block for specific user roles such as administrators, editors, or subscribers.
      • Web-Based Criteria: Control visibility based on the user's geolocation, browser, device type, operating system, or referral source.
      • Scheduled Time: Schedule the block to be visible or hidden at specific times or intervals.
  4. Apply and Publish: Save or publish the post/page to apply the configured visibility settings.

Example Use Cases:


How It Works

  1. Initialization: The plugin initializes by hooking into WordPress actions and filters via the intelli-builder.php file.
  2. Gutenberg Integration: React components within src/blocks/visibility-settings/ render the visibility settings interface for each Gutenberg block.
  3. Rule Configuration: Users set up visibility rules directly within the Gutenberg block settings panel.
  4. Conditional Rendering: Upon rendering a page or post, the plugin evaluates the defined visibility rules for each block to determine whether it should be displayed to the current user.

Third-Party Dependencies

IntelliBuilder leverages several third-party APIs and packages to enhance its functionality and provide a robust set of features for controlling content visibility.

1. CountriesNow API

2. IP-API

3. hisorange/browser-detect


Contributing

Contributions to IntelliBuilder are welcome and encouraged! To contribute:

  1. Fork the Repository: Create your own fork of the project.
  2. Create a Branch: Develop your feature or fix in a new branch.
  3. Commit Changes: Ensure your commits are clear and descriptive.
  4. Submit a Pull Request: Explain your changes and submit a pull request for review.

Please ensure that your code adheres to the project's coding standards and includes appropriate documentation.


License

IntelliBuilder is licensed under the GPLv2 or later license. For more information, please refer to the GNU General Public License v2.0.


Support

For support and inquiries, please contact Yaseen Taha at showyaseen@hotmail.com.


Thank you for using IntelliBuilder!

Empower your WordPress site with dynamic and personalized content delivery through intuitive and powerful visibility controls.