[wp-trac] [WordPress Trac] #30983: Missing Hook in wp_update_nav_menu_item function

WordPress Trac noreply at wordpress.org
Mon Jan 12 15:44:38 UTC 2015


#30983: Missing Hook in wp_update_nav_menu_item function
---------------------------+------------------------------
 Reporter:  WPThemeTrends  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Menus          |     Version:  4.1
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by MikeHansenMe):

 I think based on the name of the hook being 'wp_update_nav_menu_item' we
 should add a new hook 'wp_add_nav_menu_item' for the situation you
 described. Another option is we could provide context by passing an
 additional variable but that seems less clear.

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


More information about the wp-trac mailing list