[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fbVLpS-sWQHVZkTgfouFcgZ-_Hd_GpSn28f326ljzE2g":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"davidmosterd","David Mosterd","https:\u002F\u002Fprofiles.wordpress.org\u002Fdavidmosterd\u002F",1,100,85,30,84,"2026-04-04T06:23:20.756Z",[14],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":8,"downloaded":20,"rating":8,"num_ratings":21,"last_updated":22,"tested_up_to":23,"requires_at_least":24,"requires_php":25,"tags":26,"homepage":32,"download_link":33,"security_score":9,"vuln_count":34,"unpatched_count":34,"last_vuln_date":35,"fetched_at":36},"codepress-menu","Codepress Menu","2.3.2","\u003Cp>Uses the native \u003Ca href=\"https:\u002F\u002Fcodex.wordpress.org\u002FFunction_Reference\u002Fwp_nav_menu\" rel=\"nofollow ugc\">wp_nav_menu()\u003C\u002Fa>. Add parameters to the wp_nav_menu() to enable functionality.\u003Cbr \u002F>\nAlso, ships with one-click delete menu-items in the WordPress admin. Turned off or on using the screen-options. Sweet.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Examples\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>This will get the first sub-menu from the active branch and 2 levels beyond (menu + sub-menu + sub-menu):\u003C\u002Fp>\n\u003Cpre>\u003Ccode>wp_nav_menu( array(\n    'level' => 2,\n    'depth' => 3\n));\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Show the current branch only:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>wp_nav_menu( array(\n    'level' => 1\n));\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Aimed on simple use in various use cases:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002F\u002F display first level in the header\nwp_nav_menu( array(\n    'depth' => 1\n));\n\n\u002F\u002F display first sub-menu from the current branch somewhere else\nwp_nav_menu( array(\n    'depth' => 2,\n    'level' => 2\n));\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Another feature is it’s control over the css classes that are given to a menu-item. You might be faced with css selectors\u003Cbr \u002F>\nwhich you cannot change. The ‘codepress_menu_filter_classes’ filter can be used in your functions.php to set the class property:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002F**\n * Change the classes of a menu item\n *\n * @param array $classes List current classes\n * @param object $item Current menu item\n * @param array $items Current list of items (per level)\n * @param integer $k Key of the current item in $items\n *\u002F\nfunction codepress_menu_item_classes( $classes, $item, $items, $k ) {\n    \u002F\u002F mark the first item\n    if ( reset( $items ) == $items[ $k ] )\n        $classes[] = 'first';\n\n    \u002F\u002F mark the last item\n    if ( end( $items ) == $items[ $k ] )\n        $classes[] = 'last';\n\n    \u002F\u002F map the WordPress default 'current-menu-item' class to 'active'\n    if ( in_array( 'current-menu-item', $classes ) )\n        $classes[] = 'active';\n\n    return $classes;\n}\nadd_filter( 'codepress_menu_item_classes', 'codepress_menu_item_classes', 10, 4 );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>Simple Menu Delete\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>It ships with one-click delete menu-items within WordPress.\u003Cbr \u002F>\nThis functionality was integrated from our Simple Menu Delete plugin and enhanced a bit:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Turned off or on using the screen-options.\u003C\u002Fli>\n\u003Cli>Display is more in line with WordPress’s way of delete-links.\u003C\u002Fli>\n\u003Cli>Works exactly the same now as the nested delete-link which is a click further inside the menu item.\u003C\u002Fli>\n\u003C\u002Ful>\n","Allows you to display a sub-menu, it's depth from there on and gives you control over the menu-item classes.",8124,2,"2013-08-02T12:16:00.000Z","3.6.1","3.1","",[27,28,29,30,31],"menu","nav","navigation","submenu","walker","http:\u002F\u002Fwordpress.org\u002Fextend\u002Fplugins\u002Fcodepress-menu\u002F","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fcodepress-menu.2.3.2.zip",0,null,"2026-03-15T15:16:48.613Z"]