is_user_logged_in returns false
-
Hi.
I’m struggling a lot with checking for permissions in the WP REST API v2.
I’ve created my own plugin where my controllers derives from theWP_REST_Controller. However, when I access some user information, (check if the user is authenticated, get the current user etc.) it’s not set.is_user_logged_inreturnsfalse,wp_get_current_userreturns only null values. When I access the site base URL and underlying URLs, it works as intended. It’s only in the REST API it doesn’t work.Am I doing something wrong here? The user information should be set in my own controllers.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘is_user_logged_in returns false’ is closed to new replies.