[wp-hackers] Which hooks to alter the post tags metabox?

Dion Hulse (dd32) wordpress at dd32.id.au
Wed Nov 23 07:24:03 UTC 2011


On 23 November 2011 03:23, Bjorn Wijers <burobjorn at gmail.com> wrote:
> Hi,
>
> I'm trying to add more info to the post tags form (in wp-admin/post-new.php)
> using the hooks:
>
> 'tag_category_form'
> 'tag_edit_form_fields'
> 'tag_edit_form'
> 'tag_add_form_fields'
> 'tag_add_form'
>
> However this does not work. I'm not sure about these hooks, since it doesn't
> work (the callback does not seem to be called). Any hints on which hooks I
> can use to alter the post tags metabox?
>
> Btw my goal is to add more lists like the 'choose from the most used tags'
> as a means of helping users select certain 'required' tags, which may not
> exist in the db already. Perhaps such a plugin exists already?
>
> Thanks in advance!


If you look at where those hooks are called from, I believe you'll
find that they refer to the Taxonomy Add/Edit forms, rather than the
Taxonomy UI in the post edit page.

I believe you'll need to unregister the taxonomy metaboxes on the post
page, and add your own custom metaboxes.


More information about the wp-hackers mailing list