Skip to main content

Questions tagged [admin-ajax]

The tag has no usage guidance.

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
0 votes
1 answer
225 views

POST admin-ajax throwing error 400 - not finding custom functions

I am adding a function that should be called when a button is clicked, i have a js file with the following jquery code and the ajax call : jQuery(document).ready( function() { function ...
Fran's user avatar
  • 21
0 votes
1 answer
228 views

Get my class instance when i use admin ajax in my plugin development

im writing a plugin and i need to use ajax on it. I try to use admin ajax and it work but when i use it i can store var in my class. Example : i got my class like class Create_order{ public $...
Alexandre Lapille's user avatar
0 votes
0 answers
644 views

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". ...
Peeter's user avatar
  • 199
3 votes
1 answer
730 views

WordPress Attachment Taxonomy Checkbox Group Not Saving In Grid View

I created a taxonomy and attached it to the attachments or Media. I am using Advanced Custom Fields to add a taxonomy field which is displayed as checkbox group. It adds the fields correctly to the ...
James's user avatar
  • 720
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 ...
Trương Như Nguyệt's user avatar
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:/...
Mustafa Fazal's user avatar
0 votes
3 answers
382 views

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 ...
Mariusx's user avatar
  • 19
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
27 votes
9 answers
118k views

Wordpress admin-ajax.php 400 bad request

I have a strange and frustrating behaviour of wordpress admin-ajax.php file, when i make an ajax request it returns 400 error bad request. (function( $ ) { var ajaxscript = { ajax_url : 'mydomain....
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
2 answers
1k views

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',...,'...
jtermaat's user avatar
0 votes
1 answer
459 views

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 ...
Zachary Reese's user avatar
0 votes
1 answer
841 views

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 ...
Luan Gonçalves Barbosa's user avatar
1 vote
2 answers
2k views

get referrer URL in wp-admin-ajax.php

I used some X hook in function.php. I need to know which page trigger this action, need to get referrer URL and redirect to that page with success meassage. function ...
Gnanasekaran Loganathan's user avatar

15 30 50 per page