\ BWP_Framework_Util

Summary

Methods
Properties
Constants
is_debugging()
is_multisite()
is_subdomain_install()
is_admin_user()
is_super_admin()
is_site_admin()
is_multisite_admin()
is_on_main_blog()
can_update_site_option()
is_apache()
is_nginx()
get_request_var()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A

Methods

is_debugging()

is_debugging() 

is_multisite()

is_multisite() 

is_subdomain_install()

is_subdomain_install() 

is_admin_user()

is_admin_user() 

is_super_admin()

is_super_admin() 

is_site_admin()

is_site_admin() : boolean

Whether the currently logged in user is a site admin

A site admin is the normal admin on a standard installation, and is a super admin on a multisite installation

Returns

boolean

is_multisite_admin()

is_multisite_admin() : boolean

Whether the currently logged in user is a site admin in a multisite installation

Returns

boolean

is_on_main_blog()

is_on_main_blog() 

can_update_site_option()

can_update_site_option() 

is_apache()

is_apache() 

is_nginx()

is_nginx() 

get_request_var()

get_request_var(string  $key, boolean  $empty_as_null = true) : mixed|null

Get a variable with a specific key from $_REQUEST

This should sanitize the variable's value before returning it.

Parameters

string $key
boolean $empty_as_null

consider empty value as null. Should check the sanitized value.

Returns

mixed|null

null if $key is not set