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 thesaved_{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.The page I need help with: [log in to see the link]
- The topic ‘Adding $_POST Data sent when saving new term’ is closed to new replies.