Tribe__Events__Community__Main::getCurrentUserRole()

Get the current user’s role.


Return

(string) The role.


Top ↑

Source

File: src/Tribe/Main.php

		public function getCurrentUserRole() {
			$user_roles = $this->getUserRoles();
			if ( empty( $user_roles ) ) {
				return false;
			}
			return array_shift( $user_roles );
		}

Top ↑

Changelog

Changelog
Version Description
1.0 Introduced.