current_user_can(‘administrator’) returns false when I’m logged in
Normally for checking for administration privileges you have to check the “manage_options” capability, such as: current_user_can(‘manage_options’) Alternatively, you want to list the roles with wp_get_current_user()->roles and ensure the “Administrator” role is in that array. The capabilities you are checking for do not exist in a vanilla install of wp.