[wp-trac] [WordPress Trac] #44343: Add filter hook for parent dropdown arguments

WordPress Trac noreply at wordpress.org
Mon Jun 11 06:38:32 UTC 2018


#44343: Add filter hook for parent dropdown arguments
-----------------------------+------------------------------
 Reporter:  obiplabon        |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Taxonomy         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  administration
-----------------------------+------------------------------

Comment (by obiplabon):

 Hi [comment:2 birgire]

 Thanks for your valuable review. It's my first patch that's why I was a
 bit confused about what to add and what to not. I'll add those stuffs from
 now on.

 Thanks for the workaround. I didn't even think about that, somehow slipped
 my mind.

 `post_edit_category_parent_dropdown_args` works only when the page
 reloads, this filter hook doesn't work for ajax call. And yes, the ajax
 callback is only used for the post edit screen.

 When we add hierarchical terms from post edit screen the dropdown changes
 and there's no convenient filter hook to change the
 `wp_dropdown_categories()` arguments. It'd be better if there's a easy
 filter hook.

 What do you think? Should I upload an updated patch?

 Thanks

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


More information about the wp-trac mailing list