Title: Menu Rules
Author: Phill Brown
Published: <strong>2012년 3월 21일</strong>
Last modified: 2012년 12월 17일

---

플러그인 검색

![](https://ps.w.org/menu-rules/assets/banner-772x250.png?rev=625921)

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

![](https://s.w.org/plugins/geopattern-icon/menu-rules_9d7d59.svg)

# Menu Rules

 작성자: [Phill Brown](https://profiles.wordpress.org/phill_brown/)

[다운로드](https://downloads.wordpress.org/plugin/menu-rules.1.2.2.zip)

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

 [지원](https://wordpress.org/support/plugin/menu-rules/)

## 설명

**[This plugin has been replaced by Context Manager](https://wordpress.org/extend/plugins/context-manager/)**

Context Manager does the same job as Menu Rules, but comes with many more features
to save you time and unnecessary coding.

Menu Rules can run alongside Context Manager while you migrate your rules across.
[Speak to me on Twitter](http://twitter.com/phill_brown) if you need any help with
the transfer.

#### About Menu Rules

In WordPress there’s no way to apply context to the menu system. Menu Rules solves
this problem and gives you a framework to write your own menu extensions.

#### Example usage

You have an e-commerce website that has a custom post type called ‘products’. You
have a page that lists products which is listed in your main menu. A user visits
the page and the menu item becomes ‘active’. You click through to a product and 
the menu item loses its active state. This is how to fix it with menu rules:

 1. [Install](https://wordpress.org/extend/plugins/menu-rules/installation/) the Menu
    Rules plugin
 2. Add a menu rule
 3. Give it a meaningful name in the title field. This is just for administration purposes
 4. In the conditions field enter `is_singular( 'product' )`
 5. Choose _Emulate current page as a child but do not create a menu item._ as the 
    menu rule
 6. Find your products page in the menu dropdown
 7. Hit publish

#### Extending Menu Rules

 1. Create a class that extends `Menu_Rules_Handler` and includes a `handler` method.
 2. Write your custom functionality
 3. Register your class using `add_action( 'plugins_loaded', create_function( '', '
    Menu_Rules::register( "Your_Menu_Rule_Class" );' ) );`

Built-in rules are found in `menu-rules/rules/`

#### Support

If you’re stuck, ask me for help on [Twitter](http://twitter.com/phill_brown).

## 설치

 1. Download and unzip the folder from [the WordPress plugins repository](https://wordpress.org/extend/plugins/menu-rules/)
 2. Upload the menu-rules folder into to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Open the ‘Appearance’ menu item and click the ‘Menu Rules’ link
 5. Add a new menu rule and click ok.

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

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

기여자

 *   [ Phill Brown ](https://profiles.wordpress.org/phill_brown/)

[자국어로 “Menu Rules”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/menu-rules)

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

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

## 변경이력

#### 1.2.2

 * Upgrade notice to Context Manager

#### 1.2.1

 * Fixed fatal bug in PHP 5.4

#### 1.2

 * Conditions and Reactions divided into 2 meta boxes to improve usability
 * Theme improvements
 * Added _description_ and _footer_ options to PB Framework forms
 * Moved plugin meta box styles into PB Framework
 * Added default meta box display in PB Framework
 * Added field setter for PB Framework meta box class
 * Bugfix where frontend assets weren’t being loaded when on a new menu rule
 * Bugfix in meta box get_fields()
 * Bugfix for post updated messages

**Note:** Some stylesheets and Javascript files have had their handles changed.

#### 1.1

 * Added new _force inactive parent_ rule
 * Changed behaviour to one rule per item
 * Minor enhancements to PB Framework
 * Cleaned some unused code

## 기초

 *  버전 **1.2.2**
 *  최근 업데이트: **13년 전**
 *  활성화된 설치 **10+**
 *  워드프레스 버전 ** 3.2 또는 그 이상 **
 *  다음까지 시험됨: **3.5.2**
 *  언어
 * [English (US)](https://wordpress.org/plugins/menu-rules/)
 * 태그:
 * [context](https://ko.wordpress.org/plugins/tags/context/)[menu](https://ko.wordpress.org/plugins/tags/menu/)
   [menus](https://ko.wordpress.org/plugins/tags/menus/)[rules](https://ko.wordpress.org/plugins/tags/rules/)
 *  [고급 보기](https://ko.wordpress.org/plugins/menu-rules/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

[Your review](https://wordpress.org/support/plugin/menu-rules/reviews/#new-post)

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

## 기여자

 *   [ Phill Brown ](https://profiles.wordpress.org/phill_brown/)

## 지원

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

 [지원 포럼 보기](https://wordpress.org/support/plugin/menu-rules/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](http://pbweb.co.uk/donate)