Nav Menu Trim

Description

This WordPress plugin trim html id/class attributes of Nav Menu.

Filter Hooks

  • nav_menu_trim_get_options – Filters the options

Test Matrix

For operation compatibility between PHP version and WordPress version, see below Travis CI

Contributing

Patches and Bug Fixes

Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request.

Screenshots

  • Appearance > Customize > Menus
  • Nav Menu Trim options

Installation

  1. Download and unzip files. Or install Nav Menu Trim using the WordPress plugin installer. In that case, skip 2.
  2. Upload nav-menu-trim to the “/wp-content/plugins/” directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Configure settings through the Appearance > Customize > Menus > Nav Menu Trim menu in WordPress.
  5. Have fun!

FAQ

Installation Instructions
  1. Download and unzip files. Or install Nav Menu Trim using the WordPress plugin installer. In that case, skip 2.
  2. Upload nav-menu-trim to the “/wp-content/plugins/” directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Configure settings through the Appearance > Customize > Menus > Nav Menu Trim menu in WordPress.
  5. Have fun!

Contributors & Developers

“Nav Menu Trim” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Nav Menu Trim” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.0

  • update screenshot
  • fix PHPDoc comment
  • remove $languages_path
  • fix .travis.yml
  • fix tests
  • add nav_menu_submenu_css_class function
  • fix get_options function
  • add default_options
  • fix load_textdomain

1.0.2

  • fix tests
  • fix data validation via wp_kses
  • change output css to here document
  • fix option detect
  • change add_filter from plugin_action_links to plugin_action_links_{$plugin_file}
  • add init function
  • fix codesniffer.ruleset.xml

1.0.1

  • fixed: fix .travis.yml
  • fixed: fix trim_css_class function
  • fixed: check exists class

1.0.0

  • initial release