BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
IF AS Shortcode icon
Possibly abandoned Tested up to 6.6.10 #13 in conditions

IF AS Shortcode

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 :).

Active installs10+10+ tier
Downloads · 30d199▲ +20.6% vs prev. 30d
Rating5/52 reviews
Health score30/100At risk
All-time downloads4.6KSince Sep 2016
Support resolved—No recent threads
RequiresWP 4.0PHP 5.6+
Downloads · 7d52▲ +44.4% week over week
Our verdict

Consider an alternative

IF AS Shortcode shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 2 years ago, and scores 30/100 on our health check.

  • Small user base (10+ active installs)
  • Very few reviews so far
  • No update in 2 years
  • Only tested up to WordPress 6.6 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

4812Jul 8Aug 21Oct 5
Yesterday7
Daily average (1y)5
Peak day16Sep 14, 2026
Last 12 months1.7K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where IF AS Shortcode stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
conditions >100 4,861 Best conditions plugins →
if >100 0 Best if plugins →
if_statement #1 1 Best if_statement plugins →
page_templete_conditions #1 1 Best page_templete_conditions plugins →
post_templete_conditions #1 1 Best post_templete_conditions plugins →

Version adoption

Share of active sites per release.

  • 1.2100.0%

Rating breakdown

★★★★★★★★★★ 5 from 2 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About IF AS Shortcode

From the official readme · v1.2

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 :

  1. Create new content and in above tinymce editor you will see button it’s name is “IF”.
  2. Click “IF” button and choose the condition you need to use inside content area.
  3. You can select the true block and write otherwise inside else block.
  4. Save your content and publish to see it!

Menus :

  1. Click in left side “Appearance”
  2. Choose from it “Menus” page.
  3. You must show description field for every menu by this way :
  4. Click “Screen Options” up the menu page.
  5. Chack “Description” from that tab.
  6. Now you can add your restrict content from “Shortcode” tab.

Widgets :

  1. Click in left side “Appearance”
  2. Choose from it “Widgets” page.
  3. Now you have box it’s name “The restricted content”.
  4. 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

  1. Click Plugins in the menu dashboard.
  2. Click Add New.
  3. Upload and choose “if-as-shortcode.zip” file and activate directly.
  4. After activated plugin you can use shortcode of if statement everywhere!

Installation Manually

  1. Download the plugin to your computer.
  2. Unzip the file and upload it to the “/wp-content/plugins/” by using FTP or Cpanel.
  3. Activate the plugin through the “Plugins” menu in WordPress dashboard.
  4. After activated plugin you can use shortcode of if statement everywhere!

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.

Full changelog on WordPress.org →

Screenshots

Button to add new condition.
Button to add new condition.
Generate new content shows only for subscribers.
Generate new content shows only for subscribers.
Sample of shortcode after putting the content.
Sample of shortcode after putting the content.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best IF AS Shortcode alternatives

All conditions plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Complianz – Terms and Conditions Complianz – Terms and Conditions Configure your own Terms and Conditions specific to your service or webshop. by Complianz 300K+ ★★★★★★★★★★ 4.9 (185) 3 weeks ago 93
2 Dynamic Conditions Dynamic Conditions Activates conditions for dynamic tags to show/hide a widget or section. by rtowebsites 60K+ ★★★★★★★★★★ 4.8 (114) 2 years ago 39
3 LH Agree to Terms LH Agree to Terms Add a HTML5 "Agree to terms" check box on login or registration forms. by shawfactor 800+ ★★★★★★★★★★ 5 (4) 8 years ago 34
4 Agreeable Agreeable Add an "Agree to terms" check box on login, registration, or comment forms. Works with… by buildcreate 800+ ★★★★★★★★★★ 3.9 (27) 11 years ago 39
5 Legal Terms and Conditions Popup for User Login and WooCommerce Checkout Legal Terms and Conditions Popup for User Login and WooComm… Creates a popup with a scrollable window that will show your own custom Terms and… by Árpád Lehel Mátyus 700+ ★★★★★★★★★★ 5 (14) 7 months ago 54
6 Wicked Block Conditions Wicked Block Conditions Show or hide blocks based on conditions. by wickedplugins 600+ ★★★★★★★★★★ 5 (5) 1 year ago 31
7 Block Logic – Full Block Display Control Block Logic – Full Block Display Control Block Logic adds a "Block Logic" field to the block editor, that lets you show or hide any… by landwire 300+ ★★★★★★★★★★ 5 (13) 4 months ago 55
8 m1.MiniWeather m1.MiniWeather This plugin easily displays a weather widget (icon + temperature) with a destination of… by maennchen1.de 300+ ★★★★★★★★★★ 5 (3) 2 months ago 72
9 Widget Display Conditions Widget Display Conditions Manages widget display by conditions. by Maarten Menten 300+ ★★★★★★★★★★ 4.8 (5) 5 years ago 37
10 Automatic pages for Privacy Policy, Terms, About, Contact us Automatic pages for Privacy Policy, Terms, About, Contact us [ ✅ 𝐒𝐄𝐂𝐔𝐑𝐄 𝐏𝐋𝐔𝐆𝐈𝐍𝐒 b𝓎 𝒫𝓊𝓋𝑜𝓍 ] Automatically generate text for Privacy Policy, Terms of use… by Puvox Software 60+ ★★★★★★★★★★ 3.7 (3) 2 years ago 31

FAQ

IF AS Shortcode: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Oct 6, 2026

Is IF AS Shortcode free?

Yes. IF AS Shortcode is free to download and use from the official WordPress.org plugin directory.

Is IF AS Shortcode safe to use in 2026?

IF AS Shortcode shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 2 years ago, and scores 30/100 on our health check.

How many websites use IF AS Shortcode?

IF AS Shortcode is active on 10+ WordPress websites and has been downloaded 4,619 times since it launched in September 2016. It was downloaded 199 times in the last 30 days.

Does IF AS Shortcode work with WordPress 7.1?

IF AS Shortcode is officially tested up to WordPress 6.6.10, while the latest release is 7.1.3. It may still work, but try it on a staging site first.

What PHP version does IF AS Shortcode need?

IF AS Shortcode requires PHP 5.6 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was IF AS Shortcode last updated?

The latest version, 1.2, was released on August 9, 2024 (2 years ago).

Who makes IF AS Shortcode?

IF AS Shortcode is developed and maintained by Mohammad I. Okfie.

What are the best alternatives to IF AS Shortcode?

The most popular alternatives to IF AS Shortcode are Complianz (300K+ installs), Dynamic Conditions (60K+ installs) and LH Agree to Terms (800+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.