WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 5 months ago

#20735 new feature request

Adding tags to form element of categories.

Reported by: m.ibrahim Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.3.2
Component: Taxonomy Keywords: needs-patch good-first-bug needs-testing
Focuses: Cc:

Description

Just like the post form in posts you can use the hook of "post_edit_form_tag" to add new tags to the form element of creating or editing new post.

but there is no hook for categories form to do that I think adding new element will be helpful feature.

Note: after some debugging I found that the hook can be add in:

#File: your wordpress directory/wp-admin/edit-tag-form.php

#Line: 33

# Find : <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">

# Relpace: <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate"<?php do_action('categoery_edit_form_tag'); ?>>

Thanks

Change History (4)

comment:1 @wonderboymusic22 months ago

  • Keywords needs-patch added

comment:2 @boonebgorges7 months ago

  • Keywords good-first-bug added
  • Milestone changed from Awaiting Review to Future Release

comment:3 @shaunmza7 months ago

Looks like this has been implemented already, ticket can be closed.

comment:4 @mdmcginn5 months ago

  • Keywords needs-testing added

Yes, do_action( "{$taxonomy}_term_edit_form_tag" ); was added in 3.7.0. Does that work?

Note: See TracTickets for help on using tickets.