[wp-trac] [WordPress Trac] #35252: Add a `{$taxonomy}_term_edit_form_top` action (similar to the post editing form)

WordPress Trac noreply at wordpress.org
Tue Dec 29 13:11:45 UTC 2015


#35252: Add a `{$taxonomy}_term_edit_form_top` action (similar to the post editing
form)
----------------------------+-----------------------------
 Reporter:  flixos90        |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Taxonomy        |    Version:  4.4
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 I'm proposing to add a new action hook `{$taxonomy}_term_edit_form_top` to
 the term editing form that works similar to the `edit_form_top` action on
 the post editing form. This will allow developers to insert additional
 content on top of the edit form, just like when editing posts. Currently
 there is only a `{$taxonomy}_pre_edit_form` action which however is
 executed before the page's wrapper element, so it shouldn't be used to
 print content.

 Concerning the new action, I'm not so much thinking about adding the
 actual meta fields there (since the term name, slug and description are
 probably more important and should stay on top), but rather any custom
 content - in my case for example, I would like to be able to show a custom
 message to the user if he/she entered a weird value for one of my term
 meta fields.

 I'm gonna upload a patch with my proposed change.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35252>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list