WordPress at a glance
Главная Functions Multisite

Category: Multisite 18

get_blog_details()

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

get_current_blog_id()

Retrieve the current site ID.

get_dirsize()

Get the size of a directory.

get_id_from_blogname()

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

get_main_site_id()

Gets the main site ID.

get_sites()

Retrieves a list of sites 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 area for the 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.

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.