Maintenance 28/100509d since update
Active installs
10
Downloads
3,172
Reviews
2
Age
9.3y
Tagsconditionsconditionifpage_templete_conditionspost_templete_conditionsif_statement
Plugin info
Total downloads: 3,172
Active installs: 10
Total reviews: 2
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 2 language(s)
Contributors: 1
Last updated: 8/9/2024 (509 days ago)
Added to WordPress: 9/16/2016 (9 years old)
Minimum WordPress version: 4.0
Tested up to WordPress version: 6.6.4
Minimum PHP version: 5.6
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 509 days ago • 2 reviews
28/100
Is IF AS Shortcode abandoned?
Possibly abandoned (last update 509 days ago).
Compatibility
Requires WordPress: 4.0
Tested up to: 6.6.4
Requires PHP: 5.6
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
No similar plugins found yet.
Description
This is plugin help you to add conditions inside any post types, menus, and widgets to restrict the content by use shortcode without use php code or other language :).
Posts/Pages/Other Post Types :
- Create new content and in above tinymce editor you will see button it’s name is “IF”.
- Click “IF” button and choose the condition you need to use inside content area.
- You can select the true block and write otherwise inside else block.
- Save your content and publish to see it!
Menus :
- Click in left side “Appearance”
- Choose from it “Menus” page.
- You must show description field for every menu by this way :
- Click “Screen Options” up the menu page.
- Chack “Description” from that tab.
- Now you can add your restrict content from “Shortcode” tab.
Widgets :
- Click in left side “Appearance”
- Choose from it “Widgets” page.
- Now you have box it’s name “The restricted content”.
- You can move it to any sidebar and fill the felids.
Translations
- Arabic
- English
List of conditions
- [if current_user_can capability=”administrator”]True content[else]False content[/if]
- [if current_user_can capability=”editor”]True content[else]False content[/if]
- [if current_user_can capability=”author”]True content[else]False content[/if]
- [if current_user_can capability=”contributor”]True content[else]False content[/if]
- [if current_user_can capability=”subscriber”]True content[else]False content[/if]
- [if is_user_logged_in]True content[else]False content[/if]
- [if has_post_thumbnail]True content[else]False content[/if]
- [if comments_open]True content[else]False content[/if]
- [if has_tag]True content[else]False content[/if]
- [if is_attachment]True content[else]False content[/if]
- [if has_excerpt]True content[else]False content[/if]
- [if pings_open]True content[else]False content[/if]
- [if is_home]True content[else]False content[/if]
- [if is_rtl]True content[else]False content[/if]
Example
- Show content for who logged in
[if is_user_logged_in]
Welcome
[else]
You must login to see this content
[/if]
Installation
Installation Automatically
- Click Plugins in the menu dashboard.
- Click Add New.
- Upload and choose “if-as-shortcode.zip” file and activate directly.
- After activated plugin you can use shortcode of if statement everywhere!
Installation Manually
- Download the plugin to your computer.
- Unzip the file and upload it to the “/wp-content/plugins/” by using FTP or Cpanel.
- Activate the plugin through the “Plugins” menu in WordPress dashboard.
- After activated plugin you can use shortcode of if statement everywhere!
Frequently Asked Questions
No FAQ available
Review feed
No reviews available
Changelog
1.2
- Some minor fixes.
- New function to check status of [Classic Editor] plugin.
- Tested with WP 6.6.X
1.1
- Change released version.
- Test on WP 5.X.X
1.0
- First released version.


