Title: Clearfly's Replies | WordPress.org

---

# Clearfly

  [  ](https://wordpress.org/support/users/clearfly/)

 *   [Profile](https://wordpress.org/support/users/clearfly/)
 *   [Topics Started](https://wordpress.org/support/users/clearfly/topics/)
 *   [Replies Created](https://wordpress.org/support/users/clearfly/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/clearfly/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/clearfly/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/clearfly/engagements/)
 *   [Favorites](https://wordpress.org/support/users/clearfly/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Addiing to a custom taxonomy's write panel?](https://wordpress.org/support/topic/addiing-to-a-custom-taxonomys-write-panel/)
 *  [Clearfly](https://wordpress.org/support/users/clearfly/)
 * (@clearfly)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/addiing-to-a-custom-taxonomys-write-panel/#post-1775545)
 * There are quite a few hooks you can use depending on where you want to add in
   your form fields.
    Open up edit-tags.php and edit-tag-form.php and look for any
   of the non deprecated do_action hooks like do_action($taxonomy . ‘the hook name’);
 * The ones i found useful fire just before the submit button:
    On your Custom Taxonomy
   Add page you can use: add_action($taxonomy.’_add_form_fields’, ‘callback_function’);
   On your Custom Taxonomy Edit page you can use: add_action($taxonomy.’_edit_form’,‘
   callback_function’);
 * They pass the current $taxonomy_term to the callback function.
 * In my case is did this:
    add_action(‘product-category_edit_form’, ‘category_meta_fields’);
   add_action(‘product-category_add_form_fields’, ‘category_meta_fields’);
 * function category_meta_fields($term){
    print_r($term); // to see what you get
   passed }
 * Hope that helps someone, as i spent a good hour trying to find this out.

Viewing 1 replies (of 1 total)