Questions tagged [admin-ajax]

62 questions
0
votes
0 answers

400 (Bad Request) admin-ajax.php and WP Cost Estimation & Payment Forms Builder

I have some problems with adamin-ajax.php - Console showing something like this: console screen I using few Wordpress plugins. The most important is: "WP Cost Estimation & Payment Forms Builder". Since yesturday I also using "WP Mail SMTP by…
Peeter
  • 199
  • 2
  • 22
0
votes
3 answers

Simple wordpress ajax query is not working

Do you have any idea why this simple wp ajax query is not working? It always returns fail. Console -> https://pastebin.com/TABQCjXe jQuery(document).ready(function($) { // This does the ajax request $.ajax({ type: 'post', url: ajaxurl, …
Mariusx
  • 19
  • 5
0
votes
2 answers

How to add/hook new function into admin-ajax.php permanent

I add function 'listing_companions_Ajax' into $core_actions_post of admin-ajax.php. But discover after WP update that function is not present anymore. $core_actions_post = array('oembed-cache',...,'listing_companions_Ajax'); Question: how can I…
jtermaat
  • 31
  • 7
0
votes
1 answer

Do cached Cloudfront pages interact with the origin server?

I inherited a complex AWS system from someone and I have practically no AWS experience. I'm reading documentation and doing training, but there's one thing I can't figure out: when someone hits a page served by CloudFront, are they able to make…
0
votes
1 answer

Wordpress Ninja Forms, Access-Control-Allow-Origin and admin-ajax.php

So, I have this WP installed on Heroku and I've installed Ninja forms to it. Despite everything working OK locally, when I push it to Heroku, the form is not submited and I receive this error through the Chrome's Console: Failed to load…
0
votes
1 answer

Wordpress admin-ajax and user profile localization

So I've got an English-language theme that I localized to Spanish. It works perfectly fine in Spanish. But if I change my user profile language to English - so that I can see English on the dashboard - the AJAX-generated content on the site becomes…
0
votes
1 answer

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("#bs_floor_listing").val(); var post_ID =…
Chinou
  • 461
  • 1
  • 5
  • 23
0
votes
2 answers

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 on wordpress. My codes are: Front End…
C. Max
  • 45
  • 1
  • 7
0
votes
0 answers

WordPress admin_ajax error

I'm getting a very weird issue triggering admin Ajax. I added the bellow functions to my functions.php file add_action('wp_ajax_submit_quiz', 'quiz_submit'); add_action('wp_ajax_nopriv_submit_quiz', 'quiz_submit'); matter is, only…
user835479
0
votes
1 answer

Admin-ajax.php GET CSS file (Wordpress)

The website is tested on GTmetrix Here is the test Does anyone know why admin-ajax.php is taking over 3 seconds of the loading time on this page i am trying to optimize? It have something to do with a CSS file, but why does admin-ajax.php GET the…
0
votes
1 answer

WordPress admin-ajax - defer actions until after response sent

I am using admin-ajax.php to respond to requests from JavaScript. When I've pulled together the data I want and returned my response I also need to send some data to an external API and send an email to the user. Both of these things take a little…
Alpaus
  • 646
  • 1
  • 7
  • 21
0
votes
2 answers

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-request', 'ajaxadmin', array('ajaxurl'=> admin_url(…
Himanshu Bhardiya
  • 1,047
  • 14
  • 37
0
votes
0 answers

Wordpress: Admin-ajax.php inacessible to application on OpenShift

I'm having a problem with one wordpress plugin which needs to access the admin-ajax.php. The tests I performed showed me that a call to this file returns a 0, which should not be the case for this plugin to work. Is the admin-ajax-php blocked in any…
0
votes
2 answers

admin-ajax.php - block htaccess

I need htaccess rewrite to block request if don't have GET=action or POST=action. If somebody run example.com/wp-admin/admin-ajax.php then he will see error 404. I think that this should have rewrite could, but I don't know how this work: …
unknown
  • 97
  • 1
  • 3
  • 10
0
votes
0 answers

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 disabling that, but it didn't help. Here is a graphic of…
edit7279
  • 175
  • 5
  • 15