WordPress plugin intelligence profile

IF AS Shortcode

You can use if statement as shortcode everywhere you want!

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.6
Current version1.2
WordPress coverageTested up to WordPress 6.6
Minimum stackWP 4.0 · PHP 5.6
Directory statusactive
Last directory update9 Aug 20242y ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records IF AS Shortcode version 1.2 as active, updated 2y ago and tested up to WordPress 6.6.

Overview

About this plugin

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]

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • if statement
  • page templete conditions
  • post templete conditions
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.6

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.6.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.6
Minimum requirementsWordPress 4.0 · PHP 5.6
Update activity9 Aug 20242y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.