[wp-trac] [WordPress Trac] #33944: Add parameters to widget_nav_menu_args filter

WordPress Trac noreply at wordpress.org
Fri Sep 25 23:12:08 UTC 2015


#33944: Add parameters to widget_nav_menu_args filter
----------------------------+---------------------------
 Reporter:  walterbarcelos  |       Owner:  DrewAPicture
     Type:  enhancement     |      Status:  accepted
 Priority:  normal          |   Milestone:  4.4
Component:  Widgets         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------------

Comment (by DrewAPicture):

 After talking to @johnbillion in Slack (linked above) about it a little
 bit, we decided the value in filtering by the widget title (which is
 afforded by passing `$instance`) is low, since the menu ID is already
 available via both the `$nav_menu_args` and `$nav_menu` parameters.

 Therefore, passing `$this` provides the most value in directly targeting
 widget instances.

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


More information about the wp-trac mailing list