I have a multisite WordPress installation set up, and have a user who is set to an ‘Administrator’ role on both sites. However, the function current_user_can('Administrator')
does not return true when logged in as them, which I expected it to.
My user account, however, is an ‘Administrator’ on both sites, and also a ‘Super Admin’ on the network, and the call returns true for me.
Why is this? Shouldn’t the first user only be false if checking for ‘Super Admin’ and not just ‘Administrator’?
If this is an issue, is there any other way that I can check if a user is set to the ‘Administrator’ role without being a ‘Super Admin’?