WordPress plugin intelligence profile

Codepress Menu

Allows you to display a sub-menu, it's depth from there on and gives you control over the menu-item classes.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.6
Current version2.3.2
WordPress coverageTested up to WordPress 3.6
Minimum stackWP 3.1 · PHP —
Directory statusactive
Last directory update2 Aug 201313y ago
Active installations90Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Codepress Menu version 2.3.2 as active, updated 13y ago and tested up to WordPress 3.6.

Overview

About this plugin

Uses the native wp_nav_menu(). Add parameters to the wp_nav_menu() to enable functionality.

Also, ships with one-click delete menu-items in the WordPress admin. Turned off or on using the screen-options. Sweet.

Examples

This will get the first sub-menu from the active branch and 2 levels beyond (menu + sub-menu + sub-menu):

wp_nav_menu( array( 'level' => 2, 'depth' => 3 ));

Show the current branch only:

wp_nav_menu( array( 'level' => 1 ));

Aimed on simple use in various use cases:

// display first level in the header wp_nav_menu( array( 'depth' => 1 ));

// display first sub-menu from the current branch somewhere else wp_nav_menu( array( 'depth' => 2, 'level' => 2 ));

Another feature is it’s control over the css classes that are given to a menu-item. You might be faced with css selectors

which you cannot change. php to set the class property:

/** * Change the classes of a menu item * * @param array $classes List current classes * @param object $item Current menu item * @param array $items Current list of items (per level) * @param integer $k Key of the current item in $items */ function codepress_menu_item_classes( $classes, $item, $items, $k ) { // mark the first item if ( reset( $items ) == $items[ $k ] ) $classes[] = 'first';

// mark the last item if ( end( $items ) == $items[ $k ] ) $classes[] = 'last';

// map the WordPress default 'current-menu-item' class to 'active' if ( in_array( 'current-menu-item', $classes ) ) $classes[] = 'active';

return $classes; } add_filter( 'codepress_menu_item_classes', 'codepress_menu_item_classes', 10, 4 );

Simple Menu Delete

It ships with one-click delete menu-items within WordPress.

This functionality was integrated from our Simple Menu Delete plugin and enhanced a bit:

  • Turned off or on using the screen-options.
  • Display is more in line with WordPress’s way of delete-links.
  • Works exactly the same now as the nested delete-link which is a click further inside the menu item.
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • menu
  • nav
  • navigation
  • submenu
  • walker
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.6

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.6.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.6
Minimum requirementsWordPress 3.1 · PHP not listed
Update activity2 Aug 201313y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.