Questions tagged [admin-ajax]
The admin-ajax tag has no usage guidance.
admin-ajax
67
questions
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 ...
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 ...
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 $...
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". ...
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 ...
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:/...
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
...
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 ...
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....
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 ...
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',...,'...
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 ...
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 ...
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 ...