WordPress community icon

WordPress

/c/WordPress
Community Info

Posts in WordPress

[How to] permission_callback on register_rest_route is showing user is not logged in

[How to] permission_callback on register_rest_route is showing user is not logged in

I struggled with this one a bit and thought it might help to create a post since this appears to be a common problem. When I was building thesrest routes on OddsRabbit, the is_user_logged_in() function is returning false even when the user is logged in.

About WordPress

A home for the WordPress community

Community to discuss Wordpress

Load more