Allow access for WP Admin ajax
-
Hi,
I would like to ask how can I allow access for the use of /wp-admin/admin-ajax.php together with force login.
If I’m logged in as subscriber, I’m getting the error:
SyntaxError: Unexpected token < in JSON at position 0I have tried to deactivate force login and the error goes away in Chrome but not firefox.
I have added these to my functions.php
add_filter( 'rest_authentication_errors', '__return_true' ); remove_filter( 'rest_authentication_errors', 'v_forcelogin_rest_access', 99 );
Could you please guide me to the direction of implementation?
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Allow access for WP Admin ajax’ is closed to new replies.