Tribe__Events__Community__Main::getCurrentUserRole()
Get the current user’s role.
Return
(string) The role.
Source
File: src/Tribe/Main.php
public function getCurrentUserRole() {
$user_roles = $this->getUserRoles();
if ( empty( $user_roles ) ) {
return false;
}
return array_shift( $user_roles );
}
Changelog
| Version | Description |
|---|---|
| 1.0 | Introduced. |