made a class version of plugin_tools
This commit is contained in:
@@ -6,10 +6,10 @@ it can be "overloaded" with a callback_response and _error
|
||||
function ajax_post(ajax_data, action, callback_response, callback_error) {
|
||||
const data = new FormData();
|
||||
data.append('action', action);
|
||||
data.append('_ajax_nonce', wp_ajax._nonce);
|
||||
data.append('_ajax_nonce', fipfcard_ajax._nonce);
|
||||
data.append('data', ajax_data);
|
||||
|
||||
fetch(wp_ajax._url, {
|
||||
fetch(fipfcard_ajax._url, {
|
||||
method: 'POST',
|
||||
credentials: 'same-origin',
|
||||
body: data
|
||||
|
||||
Reference in New Issue
Block a user