elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
if(!$exception instanceof Throwable) $result
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
if(elgg_is_admin_logged_in()) $exception
Elgg JSON exception Displays a single exception.