[wp-trac] [WordPress Trac] #29463: Add filter in WP_Nav_Menu_Widget

WordPress Trac noreply at wordpress.org
Mon Oct 20 15:47:24 UTC 2014


#29463: Add filter in WP_Nav_Menu_Widget
--------------------------+-----------------------------------
 Reporter:  cyman         |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  Widgets       |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:  docs, administration
--------------------------+-----------------------------------
Changes (by DrewAPicture):

 * keywords:   => dev-feedback


Comment:

 Hi Cyman,

 Thanks a lot for adding the hook documentation.

 It occurs to me that instead of introducing a new filter here -- which
 would effectively be a duplicate of `wp_nav_menu_args` -- perhaps we
 should simply introduce a "context" parameter to the existing filter hook
 that would allow targeting of this particular context. Maybe something
 like 'menu-widget' (this context), vs 'none' or '' (main context).

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


More information about the wp-trac mailing list