ACFE Button Ajax 400 error
-
I am getting 400 errors when using the button on the backend. I am using this code:
function acfe_buttons_ajax() { echo 'Hello World'; die(); } add_action('wp_ajax_acfe/fields/button', 'acfe_buttons_ajax'); add_action('wp_ajax_nopriv_acfe/fields/button', 'financial_buttons_ajax');
And it hits /wp-admin/admin-ajax.php just fine, with the correct params, it is returning a 400 error though. Any thoughts?
Params:
{"Form data":{"action":"acfe/fields/button","field_name":"send_invoice","field_key":"field_5d7109d301824","nonce":"d5b586c6f8","post_id":"40039"},"Request payload":{"EDITOR_CONFIG":{"text":"action=acfe%2Ffields%2Fbutton&field_name=send_invoice&field_key=field_5d7109d301824&nonce=d5b586c6f8&post_id=40039","mode":"text/html"}}}
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘ACFE Button Ajax 400 error’ is closed to new replies.