All Questions
Tagged with admin-ajax php
30
questions
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.
...
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 ...
-1
votes
1
answer
668
views
WordPress Admin Ajax 400 error, returning 0
I've created an AJAX request to send data to my plugin which will then submit a job application. When submitting the form the page that it is returning is blank other than a 0 and the console is ...
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:
<...
0
votes
2
answers
377
views
Admin-ajax return 0 and error 400 in manager part
Here I am facing a problem with the admin-ajax.php of wordpress.
Indeed my project is particular since it contains 2 parts (customer part and admin part). The first part is for the client part since (/...
0
votes
1
answer
1k
views
WordPress admin-ajax.php throwing 400 bad request
add_action( 'wp_footer', function () { ?>
<script type='text/javascript' id='ajax'>
const ajaxUrl = "<?php echo admin_url('admin-ajax.php'); ?>";
async function ...
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 ...
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 ...
0
votes
0
answers
200
views
In Wordpress, trying to add an existing image from the media library to a text widget throws 404 error
I have two Wordpress instances (same Wordpress version, both recent fresh installs) on two different domains, both hosted with Namecheap, one of them works fine (actually hosted on a subdomain like ...
1
vote
0
answers
123
views
How can I make a proxy call to this Wordpress PHP function, one time without a parameter, other time with?
So in Wordpress, I have a hook for an ajax action, that looks like this:
add_action( 'wp_ajax_myhook', __NAMESPACE__ .'\myhook' );
function myhook() {
$username = "[email protected]"...
0
votes
3
answers
3k
views
Admin Ajax causing slow wordpress site (waterfall)
Can someone help me figure out how to fix the slow admin-ajax.php problem? Sorry I'm new to wordpress.
I understand it could be related to the wpbakery (visual composer) plugin used to build the ...
0
votes
1
answer
415
views
Wordpress :: Need to Call Ajax Action by extra script.php file in root folder of Wordpress
We have requirement for run costume script (a php file) in root of wordpress
Simply we have script.php file in root of wordpress project.
when I run https://mywordpress.co/script.php simply I need ...
1
vote
1
answer
231
views
Calling PHP function in Wordpress through admin-ajax.php not updating meta information, but receive a success message
post_views_count() is meant to update the view count of the page current postID using an ajax request so it can still work.
When called it is outputting that is has been successfully called but when ...
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 ...
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 ...