Title: Context Manager
Author: Phill Brown
Published: <strong>Ọ̀pẹ  15, 2012</strong>
Last modified: Bélú 13, 2013

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/context-manager/assets/banner-772x250.png?rev=640097)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

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

# Context Manager

 Láti ọwọ́ [Phill Brown](https://profiles.wordpress.org/phill_brown/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/context-manager.1.2.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/context-manager/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/context-manager/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/context-manager/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/context-manager/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/context-manager/)

## Àpèjúwe

Context Manager makes your site behave differently depending on the current userÌtumọ̀
Yorùbá: ’s context. Using the simple point-and-click admin pages, there are four
different ways your site can react:

 1. Include and exclude CSS and JavaScript files
 2. Changing the behaviour of menu items
 3. Hiding widgets in sidebars
 4. Adding extra classes to the `<body>` tag.

The plugin supersedes [Menu Rules](https://wordpress.org/extend/plugins/menu-rules/)

#### Example usage

A website has e-commerce shopping functionality driven by a custom post type called‘
products’. ThereÌtumọ̀ Yorùbá: ’s an archive page called ‘shop’ that lists products
and is linked to in the main navigation menu.

A user visits ‘shop’ and the menu item becomes ‘active’, but when they click through
to an individual product, the menu item loses its state. The user becomes lost.

 1. [Install](https://wordpress.org/extend/plugins/context-manager/installation/) the
    Context Manager plugin
 2. Add a new context 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

On the product page, there are irrelevant widgets that distract the user from making
a purchase.

 * Hide irrelevant widgets under the _widgets_ reaction

The whole shop section requires its own colour scheme, but thereÌtumọ̀ Yorùbá: ’
s no common class that ties all the pages together.

 * Enter `shop-section` class name in the _body class_ reaction. Or alternatively,
   register another stylesheet using [`wp_register_style()`](https://codex.wordpress.org/Function_Reference/wp_register_style)
   in you themeÌtumọ̀ Yorùbá: ’s `functions.php`.
 * Create

Remember to click publish when youÌtumọ̀ Yorùbá: ’re ready to save.

Have a look at [screenshots](https://wordpress.org/extend/plugins/context-manager/screenshots/)
to see the above setup in action.

#### Support

If youÌtumọ̀ Yorùbá: ’re stuck, ask me for help on [Twitter](http://twitter.com/phill_brown).

## Àwọn àwòrán ìbòjú

[⌊An example setup for a products section in a online shop⌉⌊An example setup for
a products section in a online shop⌉[

An example setup for a products section in a online shop

[⌊CSS and JavaScript reactions⌉⌊CSS and JavaScript reactions⌉[

CSS and JavaScript reactions

## Ìgbéwọlẹ̀

 1. Download and unzip the folder from [the WordPress plugins repository](https://wordpress.org/extend/plugins/context-manager/)
 2. Upload the context-manager 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 ‘Context Rules’ link

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“Context Manager” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

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

[Túmọ̀ “Context Manager” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/context-manager)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/context-manager/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/context-manager/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/context-manager/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/context-manager/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.2.0

 * [Bugfix]: disabled assets reaction which triggered errors in 3.6. No feasible
   workaround found yet
 * [Bugfix]: added conditional checks into widgets reaction

#### 1.1.5

 * [Bugfix]: menu_reaction property not being set in child page and inactive parent
   menu reactions

#### 1.1.4

 * [Bugfix]: Some environments were triggering a fatal error related to html() due
   to an action being added to a hook too late

#### 1.1.3

 * [Bugfix]: Asset reaction generating a global site error if not logged in

#### 1.1.2

 * [Bugfix]: Major issue that generated an error when adding or editing a context
   rule

#### 1.1.1

 * [Bugfix]: Errors in widget reaction when site has orphaned widgets

#### 1.1

 * [Added]: Assets reaction
 * [Bugfix]: get_rules() using incorrect meta_query parameter
 * [Bugfix]: PHP 5.4 fatal errors

#### 1.0.2

 * [Bugfix]: Body class and widget reactions caused an error when no rules were 
   set up

#### 1.0.1

 * [Bugfix]: Invalid foreach warning when no rules were added in get_rules()

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.2.0**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 13 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **20+**
 *  Ẹ̀yà WordPress ** 3.2 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.7.41**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/context-manager/)
 * Àwọn àmì
 * [context](https://yor.wordpress.org/plugins/tags/context/)[rules](https://yor.wordpress.org/plugins/tags/rules/)
   [widget logic](https://yor.wordpress.org/plugins/tags/widget-logic/)[wp_enqueue_scripts](https://yor.wordpress.org/plugins/tags/wp_enqueue_scripts/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/context-manager/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

 *  [  5 5-star reviews     ](https://wordpress.org/support/plugin/context-manager/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/context-manager/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/context-manager/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/context-manager/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/context-manager/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/context-manager/reviews/)

## Àwọn Olùkópa

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

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/context-manager/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](http://pbweb.co.uk/donate)