Tribe__Events__Community__Main::get_user_can_access_admin( int $user_id )
Get determination if the user has a role that allows access to the admin
Contents
Parameters
- $user_id
-
(int) (Required)
Return
(bool)
Source
File: src/Tribe/Main.php
public function get_user_can_access_admin( $user_id = 0 ) {
if ( $this->user_can_access_admin( $user_id ) ) {
return true;
}
return false;
}
Changelog
| Version | Description |
|---|---|
| 4.5.9 | Introduced. |