Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

mypreview/ifblock

Repository files navigation

If Block — Visibility control for Blocks

If Block Downloads If Block Active Installs If Block Ratings If Block Tested If Block Version If Block License Hire Mahdi Yazdani at UpWork

If Block

⚠️ If you are not a developer, please use the offical plugin post page on wordpress.org.

Installation

  • Download the plugin from it's GitHub Repository Release window.
  • Log into your WordPress website and navigate to Plugins » Add New.
  • Click Upload Plugin and Choose File, then select the plugin’s .zip file. Click Install Now.
  • Click Activate to start using your plugin right away.

Requirements

  • PHP version 7.2 or greater.
  • MySQL version 5.6 or greater OR MariaDB version 10.0 or greater.
  • WordPress version 5.2 or greater.

Description

This block enables you to configure certain content to appear only if specified conditions are met (or be hidden) by setting different visibility rules.

You can add any Gutenberg block inside an if-block, have it render on the front-end of your site only if specified conditions are met. This block also provides an additional area (else-block) that can optionally display an alternative content in place when defined conditions are not met.

The conditional logic of this block supports both AND and OR operators in conjunction with filtering a specif user role and also detecting visitor’s browser software as well.

Translators

Translators are welcome to contribute to the plugin. Please use the WordPress translation website.

Contributing

We welcome contributions in any form, and you can help reporting, testing, and detailing bugs.

Support

All support is handled via a dedicated support forum, available at Community Forums. Please head out there to open a new topic, in case you have any questions.

Rate ⭐⭐⭐⭐⭐

Don't forget to rate this plugin 5 shining stars if you like it, thanks!