Questions tagged [admin-ajax]
The admin-ajax tag has no usage guidance.
admin-ajax
41
questions with no upvoted or accepted answers
2
votes
1
answer
397
views
The admin-ajax page is the most visited page on the website
I run a small blog. And recently I started having my hosting resources limited quite often. I tried to see what is causing the problem, and I find it very suspicious that the wp-admin/admin-ajax page ...
2
votes
0
answers
928
views
Optimizing wp media library, using wp hooks
My apologies If I am not clear, but I will try my best to explain my problem.
After upgrading wordpress to 4.7.3. I am facing a super slow wordpress media library load(i.e. wp-admin/upload.php). It ...
2
votes
0
answers
199
views
WP-PostRating Ajax not working
I have WP-PostRating Plugins for rating system, but onclick="rate_post();" onkeypress="rate_post(); function not working.
I think PostRating JS conflict with other JS,
ERROR LOG
[15-May-2016 09:10:...
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 $...
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.
...
2
votes
0
answers
2k
views
Set Woocommerce woocommerce_get_refreshed_fragments call admin-ajax.php run after page loads
I optimzed my site with cahce and it speeds to about 2 sec load time.
The problem is that even that everything is done loading, but there are is 2 ajax call to admin-ajax.php with a action called ...
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]"...
1
vote
0
answers
2k
views
Ajax call caching using Litespeed cache plugin in Wordpress
I have an issue with caching ajax calls,
I am using ajax calls to count my post views and because of my high traffic I am not able to hit the database directly, so I want to store post views in cache ...
1
vote
1
answer
1k
views
Wordpress ajax-admin.php waiting time too long
My wordpress admin dashboard is loading slowly and taking too much time to load. The wordpress homepage loading time is okay. But when I logged in, and move to admin dashboard, all activities loaded ...
1
vote
0
answers
2k
views
Ajax filter on custom post type
I created an ajax filter on custom post type filter is working fine when I select 10-12 filters but after that admin-ajax.php file gone to pending, I don't know what is the issue.
Website url : http:/...
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 ...
1
vote
2
answers
359
views
Can't use WC_Order in admin-ajax.php
I'm trying to retrieve order information within the admin-ajax.php request, but it is returning protected objects with no data. Is there a way to access this?
I'm using this:
$data = new WC_Order($...
1
vote
0
answers
957
views
Why is admin-ajax.php being called so many times
On my WooCommerce site, can anyone tell me why admin-ajax.php is being called so many times, because it's killing my site load times.
I read about the admin-ajax/heartbeat api issue and tried ...
1
vote
2
answers
1k
views
wordpress ajax keeps losing connections
I apologize for my being little more han a newbie in WP and ajax but I need your help. I'm not sure if it's a bug or it's simply me who cannot manage to find a solution.
I've the following situation.
...
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.
...