What I am trying to do is control the access to a page that is located outside the WP installation.
So I load the WP with proper:
I am already logged in the admin panel as administrator.
But the following keeps returning false:
if (current_user_can('administrator')) echo 'true'; else echo 'false'; if (current_user_can('manage_options')) echo 'true'; else echo 'false';
I can’t figure out why. Anyone?
- The topic ‘need help! retrieving user capabilities outside the blog’ is closed to new replies.