• The best import export plugin
  • Supports very large files
  • Simple interface & flexible API
  • Import, Export, Migrate, Bulk Edit

IF AS Shortcode

by Mohammad Okfie

2 Ratings

  • 5.0

Active Installations

20+

Last Update

5 years

Quality

D

Plugin Description

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]

Similar Plugins

  • Report Bug
The content on this website originates from various sources. All rights to the original content remain with the respective author. If you believe that your copyrights have been infringed by the use of content on this website, please contact us at info@plugin-guru.com. We will remove the content in question immediately.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Regular Price

Free download

Key Features

  • You will be redirected to the retailer

Collections

Create your first Collection

To create a collection, simply click on the symbol on the desired plugin.

You can see this symbol when you move the mouse over the plugin. 

Current Level

Plugin Magican

You have reached 0 views on your collections and are currently Plugin Magican. You magically help people find the right plugins and are a great asset to the community

0 of 500 views reached