[wp-trac] [WordPress Trac] #37079: Add new filter pre_wp_get_nav_menu_items

WordPress Trac noreply at wordpress.org
Mon Jun 13 22:35:33 UTC 2016


#37079: Add new filter pre_wp_get_nav_menu_items
--------------------------+------------------------------
 Reporter:  spacedmonkey  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by spacedmonkey):

 I have a navigation caching plugin called
 [[https://github.com/spacedmonkey/advanced-nav-cache|advanced-nav-cache]].
 This plugin is designed to cache the queries / output of menus. I have
 been able filter much of navigation piece to stop sql queries from running
 in get_objects_in_term. This function has no filter and is uncachable.
 Adding this filter will me to hot wire the wp_get_nav_menu_items function
 and stop this call.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37079#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list