=== Nav Menu Manager === Contributors: rnoakes3rd Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XNE7BREHR7BZQ Tags: anchor, collpase, copy, expand, id, manager, menus, nav, query, shortcode, string, widget Requires at least: 3.8.0 Tested up to: 4.9.4 Stable tag: 1.7.2 Copyright: (c) 2016-2018 Robert Noakes (mr@robertnoak.es) License: GNU General Public License v3.0 License URI: https://www.gnu.org/licenses/gpl-3.0.html Simplifies nav menu maintenance and functionality providing more control over nav menus with less coding. == Description == Simplifies nav menu maintenance and functionality providing more control over nav menus with less coding. The plugin is coded with efficiency in-mind and loads quickly with all settings enabled. = Site Menus = * Collapse/expand functionality for easier nav menu maintenance * Improved nav menu sidebar widget for better widgetized menus * Easily register nav menus via the WordPress admin * Fail-safe code helps add a layer of protection to the theme * Disable already registered nav menus that won't be used on the site * **wp_nav_menu** code generator for quick theme implementation = Menu Settings = * Add a global active class for all active nav menu items * Exclude default ID attributes from all nav menu list items * Include custom fields on nav menu items for ID, query string and/or anchor * All settings are optional and disabled by default = Compatibility = * Compatible with other great plugins like [Nav Menu Roles](https://wordpress.org/plugins/nav-menu-roles/) * Uses a customized **Walker_Nav_Menu_Edit** class with minimal added functionality == Installation == = From Your WordPress Dashboard = 1. Log into the WordPress admin 2. Go to **Plugins > Add New** 3. Search for **Nav Menu Manager** 4. Click **Install Now** for the 'Nav Menu Manager' plugin 5. Click **Activate** = From WordPress.org = 1. Download the plugin 2. Log into the WordPress admin 3. Go to **Plugins > Add New** 4. Click **Upload Plugin** 5. Click **Browse** and select the downloaded ZIP file 6. Click **Install Now** 7. Click **Activate Plugin** = Via File Transfer = 1. Download the plugin 2. Extract the ZIP file 3. Upload the contents of the ZIP file to **wp-content/plugins/** 4. Log into the WordPress admin 5. Go to **Plugins** 6. Click **Activate** under 'Nav Menu Manager' = What's Next? = Once the plugin is active, simply visit **Settings > Nav Menu Manager** and enable the settings appropriate for this site. == Frequently Asked Questions == = Could the plugin be made compatible with [currently incompatible plugin or theme]? = **Nav Menu Manager** was built with compatibility in-mind, but because it uses a customized **Walker_Nav_Menu_Edit** class, incompatibilities are always possible. I got my inspiration for compatibility from the [Nav Menu Roles](https://wordpress.org/plugins/nav-menu-roles/) plugin and the [FAQs](https://wordpress.org/plugins/nav-menu-roles/faq/) contain extensive information on making a plugin or theme compatible with this and other plugins/themes that use the same action hook. == Screenshots == 1. Plugin settings page w/fail-safe code output 2. Code generator page 3. Nav menu collapse/expand functionality and custom fields 4. Improved nav menu sidebar widget == Changelog == = 1.7.2 = Released 2018-03-26 * Improved: Admin URL calls * Fixed: Help tabs output for AJAX calls = 1.7.1 = Released 2018-03-08 * Removed: Plugin activation hook. Forgot that isn't fired when the plugin is updated = 1.7.0 = Released 2018-03-08 * Added: Plugin activation hook * Added: New option to store menu collapsed states in user meta. By default, all menu items are collapsed unless this option is enabled * Improved: Help tab functionality and output * Improved: Various structural improvements = 1.6.0 = Released 2018-02-19 * Improved: Converted collapse/expand functionality to behave like [Nav Menu Collapse](https://wordpress.org/plugins/nav-menu-collapse/) * Fixed: Removed Essential Grid plugin meta box from the setting page = 1.5.4 = Released on 2018-02-15 * Added: [Nav Menu Collapse](https://wordpress.org/plugins/nav-menu-collapse/) image * Fixed: Minor variable name issue = 1.5.3 = Released on 2018-02-15 * Added: [Nav Menu Collapse](https://wordpress.org/plugins/nav-menu-collapse/) compatibility * Improved: Simplified object structure * Improved: Overhauled Gulp asset generation again * Improved: Various minor improvements = 1.5.2 = Released on 2017-11-14 * Added: Made sure the plugin works in WordPress 4.9 * Improved: Overhauled Gulp asset generation again * Fixed: Container bug on the NMM Menu widget = 1.5.1 = Released on 2017-06-16 * Improved: Overhauled Gulp asset generation = 1.5.0 = Released on 2017-06-13 * Added: Made sure the plugin works in WordPress 4.8 * Improved: Asset generation and enqueueing * Improved: Optimized variable handling = 1.4.2 = Released on 2017-02-22 * Changed: Optimized the generator form * Changed: Improved plugin update calls = 1.4.1 = Released on 2017-02-17 * Fixed: Sanitization callbacks for earlier versions of WordPress * Fixed: Customizer preview function call for earlier versions of WordPress * Fixed: Small issue with Custom Post Types UI styles that were affecting the generator form = 1.4.0 = Released on 2017-02-16 * Added: Ability to remove help tabs entirely * Added: Fail-safe code output for menu stability * Added: Plugin settings sanitization * Added: **wp_nav_menu** code generator * Added: Item Spacing option for the NMM Menu widget * Added: **nmm_starts_with** and **nmm_ends_with** template functions * Added: Sourcemaps for compressed assets * Improved: Widget menus can now be selected by **theme_location** * Removed: Deprecated functionality = 1.3.0 = Released on 2016-12-30 * Added: Gulp for simplified asset maintenance * Removed: Buttons action hook from the **Walker_Nav_Menu_Edit** class = 1.2.5 = Released on 2016-12-13 * Deprecated: Buttons action hook in the **Walker_Nav_Menu_Edit** class for added compatibility = 1.2.4 = Released on 2016-11-28 * Added: Made sure the plugin works in WordPress 4.7 * Fixed: Child nav menu items now expand when the collapsed parent item is deleted * Fixed: Depth option in the **NMM Menu** widget = 1.2.3 = Released on 2016-10-29 * Fixed: Working meta box fix for **Revolution Slider** = 1.2.2 = Released on 2016-10-12 * Fixed: Meta box fix for **Revolution Slider** = 1.2.1 = Released on 2016-09-30 * Fixed: Meta box fix for [qTranslate X](https://wordpress.org/plugins/qtranslate-x/) = 1.2.0 = Released on 2016-09-16 * Added: Option to disabled help buttons * Added: AJAX action template function * Improved: Display name set to **Nav Menu Manager** * Improved: Nav menu widget for **WPML** * Improved: Moved uninstall options to the bottom of the settings page * Removed: Deprecated functionality = 1.1.2 = Released on 2016-08-10 * Added: Empty nav menu option to the nav menu widget * Fixed: Issue that was preventing the custom fields from being displayed on new menu items = 1.1.1 = Released on 2016-08-09 * Improved: Changed nav menu widget name to **NMM Menu** * Improved: Template function names now start with 'nmm' = 1.1.0 = Released on 2016-08-04 * Added: Collapse/expand functionality to nav menus * Added: Help buttons for easier access to documentation * Improved: Moved all nav menus functionality to a separate class * Fixed: Made the plugin backward compatible with WordPress 3.8 and up = 1.0.4 = Released on 2016-07-28 * Added: Improved nav menu sidebar widget * Added: Made sure the plugin works in WordPress 4.6 * Fixed: Issue that was preventing custom fields from appearing in certain circumstances * Fixed: Made the plugin backward compatible with WordPress 4.0 and up = 1.0.3 = Released on 2016-07-22 * Added: Removal of leading and trailing redundancies from custom fields * Fixed: Made the plugin backward compatible with WordPress 4.4 and up = 1.0.2 = Released on 2016-07-19 * Added: Help tab to nav menus for custom fields * Added: Nav menus nonce for custom fields * Fixed: Issue that was preventing the custom fields from being displayed on new menu items = 1.0.1 = Released on 2016-07-15 * Improved: Custom field action hook for plugin compatibility = 1.0.0 = Released on 2016-07-14 * Initial release == Upgrade Notice == = 1.7 = Storing the state of collapsed nav menu items in user meta is now optional. By default, the plugin now collapses all collapsible nav menu items by default. Disable Store Collapsed States in the settings to use the new default behavior. = 1.4 = Previously, invalid nav menu location slugs could be saved in the plugin settings. New and existing nav menu locations are now sanitized which could affect menu output on the site until resolved within the theme. = 1.3 = Removed the **wp_nav_menu_item_custom_buttons** action hook from the **Walker_Nav_Menu_Edit** class and now use the **wp_nav_menu_item_custom_fields** action hook for all code added to nav menu items.