Viewing 1 replies (of 1 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Ray,

    You’ve password protected the wp-admin folder, in which admin-ajax.php lives. This will break any ajax functionality from any plug-in (unless the user is logged-in).

    As per this article, you can exclude the admin-ajax.php file, from password protection.

    Open the .htaccess file located in your /wp-admin/ folder (This is NOT the main .htaccess file that we edited above).
    In the wp-admin .htaccess file, paste the following code:

    <Files admin-ajax.php>
     Order allow,deny
     Allow from all
     Satisfy any
    </Files>
Viewing 1 replies (of 1 total)

The topic ‘admin_ajax only returns data when logged in?’ is closed to new replies.