[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fD-06PYOO8NpoV-pb1trgRDyP7wwfvJQay4K4FWTWtmE":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":8,"trust_score":10,"computed_at":11,"plugins":12},"phill_brown","Phill Brown","https:\u002F\u002Fprofiles.wordpress.org\u002Fphill_brown\u002F",2,30,85,84,"2026-04-05T02:24:17.811Z",[13,37],{"slug":14,"name":15,"version":16,"author":5,"author_profile":6,"description":17,"short_description":18,"active_installs":19,"downloaded":20,"rating":21,"num_ratings":22,"last_updated":23,"tested_up_to":24,"requires_at_least":25,"requires_php":26,"tags":27,"homepage":26,"download_link":33,"security_score":9,"vuln_count":34,"unpatched_count":34,"last_vuln_date":35,"fetched_at":36},"context-manager","Context Manager","1.2.0","\u003Cp>Context Manager makes your site behave differently depending on the current user’s context. Using the simple point-and-click admin pages, there are four different ways your site can react:\u003C\u002Fp>\n\u003Col>\n\u003Cli>Include and exclude CSS and JavaScript files\u003C\u002Fli>\n\u003Cli>Changing the behaviour of menu items\u003C\u002Fli>\n\u003Cli>Hiding widgets in sidebars\u003C\u002Fli>\n\u003Cli>Adding extra classes to the \u003Ccode>\u003Cbody>\u003C\u002Fcode> tag.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>The plugin supersedes \u003Ca href=\"https:\u002F\u002Fwordpress.org\u002Fextend\u002Fplugins\u002Fmenu-rules\u002F\" rel=\"ugc\">Menu Rules\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch4>Example usage\u003C\u002Fh4>\n\u003Cp>A website has e-commerce shopping functionality driven by a custom post type called ‘products’. There’s an archive page called ‘shop’ that lists products and is linked to in the main navigation menu.\u003C\u002Fp>\n\u003Cp>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.\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fwordpress.org\u002Fextend\u002Fplugins\u002Fcontext-manager\u002Finstallation\u002F\" rel=\"ugc\">Install\u003C\u002Fa> the Context Manager plugin\u003C\u002Fli>\n\u003Cli>Add a new context rule\u003C\u002Fli>\n\u003Cli>Give it a meaningful name in the title field. This is just for administration purposes\u003C\u002Fli>\n\u003Cli>In the \u003Cem>conditions\u003C\u002Fem> field enter \u003Ccode>is_singular( 'product' )\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>Choose \u003Cem>Emulate current page as a child but do not create a menu item.\u003C\u002Fem> as the menu rule\u003C\u002Fli>\n\u003Cli>Find your products page in the menu dropdown\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>On the product page, there are irrelevant widgets that distract the user from making a purchase.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Hide irrelevant widgets under the \u003Cem>widgets\u003C\u002Fem> reaction\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>The whole shop section requires its own colour scheme, but there’s no common class that ties all the pages together.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Enter \u003Ccode>shop-section\u003C\u002Fcode> class name in the \u003Cem>body class\u003C\u002Fem> reaction. Or alternatively, register another stylesheet using \u003Ca href=\"https:\u002F\u002Fcodex.wordpress.org\u002FFunction_Reference\u002Fwp_register_style\" rel=\"nofollow ugc\">\u003Ccode>wp_register_style()\u003C\u002Fcode>\u003C\u002Fa> in you theme’s \u003Ccode>functions.php\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Create \u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Remember to click publish when you’re ready to save.\u003C\u002Fp>\n\u003Cp>Have a look at \u003Ca href=\"https:\u002F\u002Fwordpress.org\u002Fextend\u002Fplugins\u002Fcontext-manager\u002Fscreenshots\u002F\" rel=\"ugc\">screenshots\u003C\u002Fa> to see the above setup in action.\u003C\u002Fp>\n\u003Ch4>Support\u003C\u002Fh4>\n\u003Cp>If you’re stuck, ask me for help on \u003Ca href=\"http:\u002F\u002Ftwitter.com\u002Fphill_brown\" rel=\"nofollow ugc\">Twitter\u003C\u002Fa>.\u003C\u002Fp>\n","Make your site react to users' context by changing your theme's CSS and JavaScript files, navigation menus, sidebars and the HTML body tag.",20,4624,100,5,"2013-11-13T16:21:00.000Z","3.7.41","3.2","",[28,29,30,31,32],"context","rules","widget-logic","wp_enqueue_scripts","wp_enqueue_styles","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fcontext-manager.1.2.0.zip",0,null,"2026-03-15T15:16:48.613Z",{"slug":38,"name":39,"version":40,"author":5,"author_profile":6,"description":41,"short_description":42,"active_installs":43,"downloaded":44,"rating":34,"num_ratings":34,"last_updated":45,"tested_up_to":46,"requires_at_least":25,"requires_php":26,"tags":47,"homepage":26,"download_link":51,"security_score":9,"vuln_count":34,"unpatched_count":34,"last_vuln_date":35,"fetched_at":36},"menu-rules","Menu Rules","1.2.2","\u003Cp>\u003Cstrong>\u003Ca href=\"https:\u002F\u002Fwordpress.org\u002Fextend\u002Fplugins\u002Fcontext-manager\u002F\" rel=\"ugc\">This plugin has been replaced by Context Manager\u003C\u002Fa>\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Context Manager does the same job as Menu Rules, but comes with many more features to save you time and unnecessary coding.\u003C\u002Fp>\n\u003Cp>Menu Rules can run alongside Context Manager while you migrate your rules across. \u003Ca href=\"http:\u002F\u002Ftwitter.com\u002Fphill_brown\" rel=\"nofollow ugc\">Speak to me on Twitter\u003C\u002Fa> if you need any help with the transfer.\u003C\u002Fp>\n\u003Ch4>About Menu Rules\u003C\u002Fh4>\n\u003Cp>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.\u003C\u002Fp>\n\u003Ch4>Example usage\u003C\u002Fh4>\n\u003Cp>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:\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fwordpress.org\u002Fextend\u002Fplugins\u002Fmenu-rules\u002Finstallation\u002F\" rel=\"ugc\">Install\u003C\u002Fa> the Menu Rules plugin\u003C\u002Fli>\n\u003Cli>Add a menu rule\u003C\u002Fli>\n\u003Cli>Give it a meaningful name in the title field. This is just for administration purposes\u003C\u002Fli>\n\u003Cli>In the conditions field enter \u003Ccode>is_singular( 'product' )\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>Choose \u003Cem>Emulate current page as a child but do not create a menu item.\u003C\u002Fem> as the menu rule\u003C\u002Fli>\n\u003Cli>Find your products page in the menu dropdown\u003C\u002Fli>\n\u003Cli>Hit publish\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch4>Extending Menu Rules\u003C\u002Fh4>\n\u003Col>\n\u003Cli>Create a class that extends \u003Ccode>Menu_Rules_Handler\u003C\u002Fcode> and includes a \u003Ccode>handler\u003C\u002Fcode> method.\u003C\u002Fli>\n\u003Cli>Write your custom functionality\u003C\u002Fli>\n\u003Cli>Register your class using \u003Ccode>add_action( 'plugins_loaded', create_function( '', 'Menu_Rules::register( \"Your_Menu_Rule_Class\" );' ) );\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Built-in rules are found in \u003Ccode>menu-rules\u002Frules\u002F\u003C\u002Fcode>\u003C\u002Fp>\n\u003Ch4>Support\u003C\u002Fh4>\n\u003Cp>If you’re stuck, ask me for help on \u003Ca href=\"http:\u002F\u002Ftwitter.com\u002Fphill_brown\" rel=\"nofollow ugc\">Twitter\u003C\u002Fa>.\u003C\u002Fp>\n","An extension of the menu system with context-based rules and a flexible framework to write your own.",10,8819,"2012-12-17T22:44:00.000Z","3.5.2",[28,48,49,50,29],"menu","menus","parent-menu","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fmenu-rules.1.2.2.zip"]