waughj/wp-admin-menu

Template for automatically creating link menu based on menu in WordPress's Menu in Appearance.

v0.9.1 2020-03-20 21:25 UTC

README

Template for automatically creating link menu based on menu in WordPress’s Menu in Appearance.

Use

use WaughJ\WPAdminMenu\WPAdminMenu;
$menu = new WPAdminMenu( 'header-nav', 'Header Nav' );
$menu->printMenu();

Changelog

0.9.1

  • Make work with post type archives

0.9.0

  • Add special exceptions for errors & add ability to pass in custom error handler

0.8.3

  • Fix printing methods to work with new WPAdminMenuItem class

0.8.2

  • Make menus are sorted based on menu order

0.8.1

  • Fix bugs caused when using custom links in menu

0.8.0

  • Fix bugs when using custom taxonomy links
  • Replace specific and complex WPPostConverter with simpler and more focused FlatToHierarchySorter

0.7.0

  • Add ability to automatically set current page
  • Optimize menu use so that it only runs the list converter once @ initialization

0.6.0

  • Add Ability to Not Show Link for Current Page

0.5.0

  • Add Current Link class to Possible Attributes

0.4.0

  • Add Custom Attributes for Printing

0.3.0

  • Add Ability to Stringify Instance

0.2.0

  • Make Nav Registration Automatically Get Theme Name

0.1.0

  • Initial Release