Condition Maker
Condition Maker is a WordPress plugin that enables you to create conditional logic using shortcodes. With this plugin, you can easily define conditions based on attribute values and comparison operators to control the display of content on your WordPress site.
★ 0stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/haris-khan-durrani/condition-maker-wordpress-plugin/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Condition Maker WordPress Plugin
Condition Maker is a WordPress plugin that enables you to create conditional logic using shortcodes. With this plugin, you can easily define conditions based on attribute values and comparison operators to control the display of content on your WordPress site.
Installation
1. Download the latest release from the GitHub repository.
2. Extract the downloaded ZIP file.
3. Upload the extracted folder to the wp-content/plugins/ directory of your WordPress installation.
4. Activate the plugin through the 'Plugins' menu in WordPress.
Usage
Shortcode: [makecond]
The main shortcode provided by the Condition Maker plugin is [makecond]. This shortcode allows you to create conditional logic with various attributes. Here is an example of its usage:
php
[makecond inputattribute="someattribute" inputisshortcode="yes" comparisonoperator="==" comparisonvalue="somevalue" outputattribute="[shortcodecontent]" attr="yes" elseouashort="no" elseout=""]
Shortcode Attributes
inputattribute: The attribute to be compared.
inputisshortcode: Set to 'yes' if the input attribute is a shortcode.
compareisshortcode: Set to 'yes' if the comparison value is a shortcode.
compa