Tagged Questions
0
votes
1answer
133 views
Saving custom data via ajax with nonces
I'm trying to securely save custom data to database from plugin backend via ajax.
JavaScript code that runs after clicking save button:
$.ajax({
url: ajaxVars.ajaxurl,
type: 'post',
...