All Questions
3 questions
2
votes
1
answer
246
views
SSO autologin Wordpress + Ajax
That one keeps me awake at night.
The problem is that the user is properly logging in, but AFTER page refresh and should be immediately logged in without page reload. Need a fresh eyes to look at it.
...
1
vote
1
answer
710
views
how to send Ajax request in wordpress backend
On the fronted the wp_localize_script seems to be working as when I view the source I can see the nonce.
wp_localize_script('scripts', 'myAjax', array(
'root_url' => get_site_url(),
'...
1
vote
2
answers
9k
views
wp-admin AJAX with Fetch API is done without user
TL;DR - Why is my user account not logged in during an AJAX request which is made inside wp-admin?
I have the following setup:
<?php
add_action('wp_ajax_foobar_action', 'foobar_action');
...