Skip to main content

All Questions

Tagged with
0 votes
0 answers
78 views

Wordpress admin-ajax.php returns 0 and 400 bad request

I have been working in a project and I hit a road block from admin-ajax.php file, when i make an ajax request it returns 400 error bad request and the admin-ajax.php response in the network tab is 0. ...
ladi ayo's user avatar
0 votes
0 answers
37 views

admin ajax request giving 400 error when accessing function inside php class

I am using admin ajax request in wordpress plugin to access a function inside php class. But, it is giving 400 bad request error: my class file name: class.ajaxtest.php ajaxtest_PLUGIN_URL is defined ...
Rahul B's user avatar
  • 71
0 votes
1 answer
241 views

Wordpress plugin jQuery script call to admin-ajax.php works only once

I'm writing a little wordpress plugin. The plugin has a simple script that interacts with a datatable in the backend. It is used to duplicate a row in the table by clicking a button, and then insert ...
uomopalese's user avatar
0 votes
0 answers
223 views

Wordperss admin-ajax.php error 400 Bad Request

I can't find where this error 400 comes from? FontOffice only avaible for logged in persons. I'm trying to create a form to post a custom post type through Ajax. Here is the form in front office: <...
C_Com2see's user avatar
0 votes
2 answers
3k views

Wordpress admin-ajax.php 400 Failed to load

Am using this script 'WordPress CPT Ajax filtering' found here on GitHub. Everything work as i need it apart from the 'All' filter, click this and all post disappear and i get the error below, but the ...
Daniel's user avatar
  • 199
0 votes
1 answer
2k views

Wordpress AJAX request on admin-ajax.php gives error 400

I'm trying to create a Wordpress plugin that will receive a simple AJAX request and, for the moment, just post its body. My code is: File /wp-content/plugins/prova/prova.php: <?php /** * Plugin ...
Fed C's user avatar
  • 193
0 votes
0 answers
334 views

nopriv actions not working when not logged in

I'm redoing a client's WP/WooCommerce site and I'm having trouble with admin-ajax actions when the customer is not logged in. I don't believe the nopriv actions are being found by the ajax call. If ...
Snuglas's user avatar
  • 63
0 votes
0 answers
1k views

How to get admin-ajax.php to localize and scripts to enqueue

I cant for the life of me get any scripts to enqueue within my functions.php file nor can I localize my admin-ajax.php url. I've been including any css and js in their traditional places (css in the ...
blancooo's user avatar
1 vote
0 answers
74 views

jQuery Ajax (Wordpress) not passing all of my POST variables

I am creating a small web application using WordPress. I'm using Ajax to make multiple calls for a reservation system. I have 4 steps (Get Industry's, Get Consultants in Industry, Get available times ...
Derek Hughes's user avatar
5 votes
3 answers
17k views

Wordpress "admin-ajax.php" 404 Error

I created a website for a small bed and breakfast, but I found a problem, which I don’t understand if it is depended on WordPress or the server. This website uses a pop-up animation to show the room ...
Meng's user avatar
  • 51
0 votes
1 answer
786 views

After Ajax Response Page scroll not working - WordPress

After the ajax success i want to scroll down the page to certain position . Unfortunately its not working . Here is the code : jQuery('#post').submit(function(e){ var name = jQuery("#...
Chinou's user avatar
  • 471
0 votes
2 answers
399 views

wordpress admin-ajax return always 0

I know that my question was asked many other times and I read all discussions about that but I don't have found the right answer. My problem is that admin-ajax request with ajax call return always 0 ...
C. Max's user avatar
  • 65
2 votes
1 answer
4k views

wp_localize_script $data parameters in array

I'm trying to develop my first Wordpress plugin, and to do this I want to use wp_localize_script to post forms data without refreshing page. The problem is I don't understand well how to setup the $...
BBFUNK01's user avatar
0 votes
2 answers
2k views

wordpress admin ajax not working, returning entire html of page

I have following code in my functions.php file. wp_enqueue_script( 'broadcast-ajax-request', get_template_directory_uri() . '/js/global.js', array( 'jquery' ) ); wp_localize_script( 'broadcast-ajax-...
Himanshu Bhardiya's user avatar
2 votes
0 answers
2k views

Called and canceled of the admin-ajax.php file multiple times

I have an issue in a Wordpress installation with a plugin. There is a calendar which you can click on a day (or a range of days) and from ajax calls through admin-ajax.php it calculates product costs. ...
Tasos's user avatar
  • 7,487