[wp-trac] [WordPress Trac] #32708: Customizer Menus: add hooks to the WP_Customize_Nav_Menus class so it can be extended

WordPress Trac noreply at wordpress.org
Mon Jul 20 20:13:32 UTC 2015


#32708: Customizer Menus: add hooks to the WP_Customize_Nav_Menus class so it can
be extended
-------------------------------------+---------------------------
 Reporter:  imath                    |       Owner:  valendesigns
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.3
Component:  Customize                |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------
Changes (by valendesigns):

 * keywords:  needs-patch needs-unit-tests => has-patch needs-testing


Comment:

 Patch [attachment:32708.2.diff] adds two new filters and supporting unit
 tests. If you need to add a custom type label then you will need to use
 the `wp_setup_nav_menu_item` to achieve this. I'll write a Make post
 explaining exactly how to use the new filters and modify the type label.
 For now you can see how things work by looking at the unit tests. Let's
 get this tested and committed before beta4.

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


More information about the wp-trac mailing list