Title: Adding $_POST Data sent when saving new term
Last modified: April 20, 2023

---

# Adding $_POST Data sent when saving new term

 *  [Michael Benjamin Chapman](https://wordpress.org/support/users/michaelbenjaminchapman/)
 * (@michaelbenjaminchapman)
 * [3 years ago](https://wordpress.org/support/topic/adding-_post-data-sent-when-saving-new-term/)
 * Is it possible to include additional data that will be sent to the `$_POST` or`
   $args` variable that is received by the `saved_{taxonomy}` hook?
   I have a small
   piece of data I would like to gather from the user when they create a new term,
   and I’m hoping to have it show up in this hook without needing to do something
   like send a separate ajax request from the javascript that is running on the 
   Add New Term page.In the past, I have sent this data with an ajax request to 
   the server, and then stored the data in the term_meta so that it could be retrieved
   later when the term is finally saved.But this introduces a coordination problem
   where the post can’t be saved until the ajax request completes, otherwise it 
   won’t have access to this additional data.
    -  This topic was modified 3 years ago by [Michael Benjamin Chapman](https://wordpress.org/support/users/michaelbenjaminchapman/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-_post-data-sent-when-saving-new-term%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years ago](https://wordpress.org/support/topic/adding-_post-data-sent-when-saving-new-term/#post-16672738)
 * You’d need to add an additional field to the form used to define a term. The 
   source code for the form likely has a few action hooks you can use to output 
   additional fields. As part of the form, the field value will be within $_POST
   and you can save it through any action that fires as part of saving the default
   fields.
 * The easy way to manage this is by using a custom fields plugin, but you can roll
   your own code if you prefer.

Viewing 1 replies (of 1 total)

The topic ‘Adding $_POST Data sent when saving new term’ is closed to new replies.

## Tags

 * [custom taxonomy](https://wordpress.org/support/topic-tag/custom-taxonomy/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/adding-_post-data-sent-when-saving-new-term/#post-16672738)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
