[wp-trac] [WordPress Trac] #33891: apply_filters bug

WordPress Trac noreply at wordpress.org
Wed Sep 16 09:49:43 UTC 2015


#33891: apply_filters bug
--------------------------+------------------------------
 Reporter:  rgout         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => close


Comment:

 Hi @rgout, welcome to Trac!

 You have to specify the number of arguments in your `add_filter()` call:
 {{{
 add_filter( 'wp_nav_menu_items', 'modify_nav_menu_items', 10, 2 );
 }}}

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


More information about the wp-trac mailing list