Title: IF AS Shortcode
Author: Mohammad I. Okfie
Published: <strong>2016년 9월 16일</strong>
Last modified: 2024년 8월 9일

---

플러그인 검색

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://ps.w.org/if-as-shortcode/assets/icon-256x256.png?rev=3133338)

# IF AS Shortcode

 작성자: [Mohammad I. Okfie](https://profiles.wordpress.org/okfie/)

[다운로드](https://downloads.wordpress.org/plugin/if-as-shortcode.1.2.zip)

 * [세부사항](https://ko.wordpress.org/plugins/if-as-shortcode/#description)
 * [평가](https://ko.wordpress.org/plugins/if-as-shortcode/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/if-as-shortcode/#installation)
 * [개발](https://ko.wordpress.org/plugins/if-as-shortcode/#developers)

 [지원](https://wordpress.org/support/plugin/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 :).

#### 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]

## 스크린샷

[⌊Button to add new condition.⌉⌊Button to add new condition.⌉[

Button to add new condition.

[⌊Generate new content shows only for subscribers.⌉⌊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.⌉[

Sample of shortcode after putting the content.

## 설치

#### 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!

## 후기

![](https://secure.gravatar.com/avatar/ed3d54516728b413860871df41b1e7d401e0c5912a93903aec9f7c16e7b2577b?
s=60&d=retro&r=g)

### 󠀁[Super easy and simple code](https://wordpress.org/support/topic/super-easy-and-simple-code/)󠁿

 [reiven](https://profiles.wordpress.org/reiven/) 2019년 11월 6일

Thanks!

![](https://secure.gravatar.com/avatar/14459e78fa5b51f15dbf64c71eb8a49b02bb1ecf20bcf554d368d21723162a4d?
s=60&d=retro&r=g)

### 󠀁[Funciona perfectamente](https://wordpress.org/support/topic/funciona-perfectamente-14/)󠁿

 [ferniwob](https://profiles.wordpress.org/ferniwob/) 2016년 11월 17일

Funciona perfectamente facil de entender i de utilizar

 [ 모든 2 평가 읽기 ](https://wordpress.org/support/plugin/if-as-shortcode/reviews/)

## 기여자 & 개발자

“IF AS Shortcode”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ Mohammad I. Okfie ](https://profiles.wordpress.org/okfie/)

“IF AS Shortcode”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 [번역자](https://translate.wordpress.org/projects/wp-plugins/if-as-shortcode/contributors)
님께 감사드립니다.

[자국어로 “IF AS Shortcode”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/if-as-shortcode)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/if-as-shortcode/)는, 
[SVN 저장소](https://plugins.svn.wordpress.org/if-as-shortcode/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/if-as-shortcode/)을 [RSS](https://plugins.trac.wordpress.org/log/if-as-shortcode/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 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.

## 기초

 *  버전 **1.2**
 *  최근 업데이트: **2년 전**
 *  활성화된 설치 **10+**
 *  워드프레스 버전 ** 4.0 또는 그 이상 **
 *  다음까지 시험됨: **6.6.10**
 *  PHP 버전 ** 5.6 또는 그 이상 **
 *  언어
 * [Arabic](https://ar.wordpress.org/plugins/if-as-shortcode/) 및 [English (US)](https://wordpress.org/plugins/if-as-shortcode/).
 *  [자국어로 번역하기](https://translate.wordpress.org/projects/wp-plugins/if-as-shortcode)
 * 태그:
 * [conditions](https://ko.wordpress.org/plugins/tags/conditions/)[if](https://ko.wordpress.org/plugins/tags/if/)
 *  [고급 보기](https://ko.wordpress.org/plugins/if-as-shortcode/advanced/)

## 평점

 별 5점 만점에 5점.

 *  [  2/5-별점 후기     ](https://wordpress.org/support/plugin/if-as-shortcode/reviews/?filter=5)
 *  [  0/4-별점 후기     ](https://wordpress.org/support/plugin/if-as-shortcode/reviews/?filter=4)
 *  [  0/3-별점 후기     ](https://wordpress.org/support/plugin/if-as-shortcode/reviews/?filter=3)
 *  [  0/2-별점 후기     ](https://wordpress.org/support/plugin/if-as-shortcode/reviews/?filter=2)
 *  [  0/1-별점 후기     ](https://wordpress.org/support/plugin/if-as-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/if-as-shortcode/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/if-as-shortcode/reviews/)

## 기여자

 *   [ Mohammad I. Okfie ](https://profiles.wordpress.org/okfie/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/if-as-shortcode/)