Multisite (category)

get_blog_details()

Retrieve the details for a blog from the blogs table and blog options.

get_current_blog_id()

Retrieve the current site (blog) ID.

get_dirsize()

Gets the size of a directory in bytes. The result is cached to a transient option (or object cache).

get_id_from_blogname()

Retrieves a sites ID given its (subdomain or directory) slug.

get_main_site_id()

Gets the main site ID.

get_site_meta()

Retrieves metadata for a site.

get_sites()

Retrieves a list of sites in the form of array in the current network matching requested arguments.

grant_super_admin()

Grants Super Admin privileges.

is_blog_admin()

Whether the current request is for a site's admininstrative interface.

is_main_site()

Determine whether a site is the main site of the current network.

is_multisite()

If Multisite is enabled.

is_network_admin()

Whether the current request is for the network administrative interface.

is_user_admin()

Whether the current request is for a user admin screen.

network_admin_url()

Retrieves the URL to the admin panel for the network — many sites management (not for a single blog of the network): /wp-admin/network.

network_home_url()

Retrieves the home URL for the current network.

recurse_dirsize()

Get the size of a directory recursively.

restore_current_blog()

Restore the current blog, after calling switch_to_blog()

switch_to_blog()

Switch the current blog.

update_user_status()

Update the status of a user in the database.

Options

add_network_option()

Add a new network option.

get_network_option()

Retrieve a network's option value based on the option name.

get_site_option()

Retrieve an option value for the current network based on name of option.

get_site_transient()

Retrieves the value of a site transient.

update_site_option()

Update the value of an option that was already added for the current network.

Users

delete_user_option()

Delete user option with global blog capability.

get_user_option()

Retrieve user option that can be either per Site or per Network.

update_user_option()

Update user option with global blog capability.