is_multisite()
If Multisite is enabled.
Description #Description
Return #Return
(bool) True if Multisite is enabled, false otherwise.
Source #Source
File: wp-includes/load.php
function is_multisite() { if ( defined( 'MULTISITE' ) ) { return MULTISITE; } if ( defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) { return true; } return false; }
Expand full source code Collapse full source code View on Trac
Changelog #Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Related #Related
Used By #Used By
Used By | Description |
---|---|
wp-includes/functions.php: is_site_meta_supported() |
Determines whether site meta is enabled. |
wp-admin/includes/schema.php: populate_network_meta() |
Creates WordPress network meta and sets the default values. |
wp-includes/script-loader.php: wp_default_packages_inline_scripts() |
Adds inline scripts required for the WordPress JavaScript packages. |
wp-includes/embed.php: get_oembed_response_data_for_url() |
Retrieves the oEmbed response data for a given URL. |
wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php: WP_REST_Attachments_Controller::check_upload_size() |
Determine if uploaded file exceeds space quota on multisite. |
wp-includes/class-wp-roles.php: WP_Roles::get_roles_data() |
Gets the available roles data. |
wp-includes/functions.php: get_main_site_id() |
Gets the main site ID. |
wp-includes/customize/class-wp-customize-themes-panel.php: WP_Customize_Themes_Panel::content_template() |
An Underscore (JS) template for this panel’s content (but not its container). |
wp-includes/customize/class-wp-customize-themes-section.php: WP_Customize_Themes_Section::render_template() |
Render a themes section as a JS template. |
wp-includes/option.php: delete_expired_transients() |
Deletes all expired transients. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_user() |
Get the user, if the ID is valid. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::check_role_update() |
Determines if the current user is allowed to make the desired roles change. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::delete_item() |
Deletes a single user. |
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::create_item() |
Creates a single user. |
wp-includes/option.php: register_initial_settings() |
Register default settings available in WordPress. |
wp-includes/class-wp-theme.php: WP_Theme::network_enable_theme() |
Enables a theme for all sites on the current network. |
wp-includes/class-wp-theme.php: WP_Theme::network_disable_theme() |
Disables a theme for all sites on the current network. |
wp-includes/load.php: get_current_network_id() |
Retrieves the current network ID. |
wp-admin/includes/ajax-actions.php: wp_ajax_install_theme() |
Ajax handler for installing a theme. |
wp-admin/includes/ajax-actions.php: wp_ajax_install_plugin() |
Ajax handler for installing a plugin. |
wp-includes/general-template.php: has_custom_logo() |
Determines whether the site has a custom logo. |
wp-includes/general-template.php: get_custom_logo() |
Returns a custom logo, linked to home. |
wp-includes/functions.php: _wp_upload_dir() |
A non-filtered, non-cached version of wp_upload_dir() that doesn’t check the path. |
wp-includes/rest-api.php: get_rest_url() |
Retrieves the URL to a REST endpoint on a site. |
wp-includes/user.php: wp_get_users_with_no_role() |
Get the user IDs of all users with no role on this site. |
wp-includes/user.php: get_password_reset_key() |
Creates, stores, then returns a password reset key for user. |
wp-includes/option.php: update_network_option() |
Update the value of a network option that was already added. |
wp-includes/option.php: add_network_option() |
Add a new network option. |
wp-includes/option.php: delete_network_option() |
Removes a network option by name. |
wp-includes/option.php: get_network_option() |
Retrieve a network’s option value based on the option name. |
wp-includes/general-template.php: get_site_icon_url() |
Returns the Site Icon URL. |
wp-includes/functions.php: get_main_network_id() |
Get the main network ID. |
wp-admin/includes/file.php: _wp_handle_upload() |
Handle PHP uploads in WordPress, sanitizing file names, checking extensions for mime type, and moving the file to the appropriate directory within the uploads directory. |
wp-login.php: retrieve_password() |
Handles sending password retrieval email to user. |
wp-login.php: login_header() |
Output the login page header. |
wp-admin/includes/network.php: network_step2() |
Prints step 2 for Network installation process. |
wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::bulk_upgrade() |
Upgrade several themes at once. |
wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::bulk_upgrade() |
Bulk upgrade several plugins at once. |
wp-admin/includes/theme.php: delete_theme() |
Remove a theme |
wp-admin/includes/theme.php: get_theme_update_available() |
Retrieve the update link if there is a theme update available. |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::get_bulk_actions() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::display_rows() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::single_row() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::prepare_items() | |
wp-admin/includes/class-wp-plugins-list-table.php: WP_Plugins_List_Table::no_items() | |
wp-admin/includes/export.php: wxr_site_url() |
Return the URL of the site |
wp-admin/includes/deprecated.php: WP_User_Search::prepare_query() |
Prepares the user search query (legacy). |
wp-admin/includes/deprecated.php: get_author_user_ids() |
Get all user IDs. |
wp-admin/includes/deprecated.php: get_editable_user_ids() |
Gets the IDs of any users who can edit posts. |
wp-admin/includes/deprecated.php: get_nonauthor_user_ids() |
Gets all users who are not authors. |
wp-admin/includes/class-plugin-installer-skin.php: Plugin_Installer_Skin::after() | |
wp-includes/capabilities.php: grant_super_admin() |
Grants Super Admin privileges. |
wp-includes/capabilities.php: revoke_super_admin() |
Revokes Super Admin privileges. |
wp-admin/includes/misc.php: save_mod_rewrite_rules() |
Updates the htaccess file with the current rules if it is writable. |
wp-admin/includes/misc.php: iis7_save_url_rewrite_rules() |
Updates the IIS web.config file with the current rules if it is writable. |
wp-admin/includes/misc.php: update_home_siteurl() |
Flushes rewrite rules if siteurl, home or page_on_front changed. |
wp-admin/includes/schema.php: populate_network() |
Populate network settings. |
wp-admin/includes/schema.php: wp_get_db_schema() |
Retrieve the SQL for creating database tables. |
wp-admin/includes/schema.php: populate_options() |
Create WordPress options and set the default values. |
wp-admin/includes/update.php: update_nag() | |
wp-admin/includes/update.php: wp_plugin_update_row() |
Displays update information for a plugin. |
wp-admin/includes/dashboard.php: wp_dashboard_quota() |
Display file upload quota on dashboard. |
wp-admin/includes/upgrade.php: pre_schema_upgrade() |
Runs before the schema is upgraded. |
wp-admin/includes/upgrade.php: wp_upgrade() |
Runs WordPress Upgrade functions. |
wp-admin/includes/upgrade.php: wp_install_defaults() |
Creates the initial content for a newly-installed site. |
wp-admin/includes/plugin.php: _get_dropins() |
Returns drop-ins that WordPress uses. |
wp-admin/includes/plugin.php: is_plugin_active_for_network() |
Determines whether the plugin is active for the entire network. |
wp-admin/includes/plugin.php: activate_plugin() |
Attempts activation of plugin in a “sandbox” and redirects on success. |
wp-admin/includes/plugin.php: deactivate_plugins() |
Deactivate a single plugin or multiple plugins. |
wp-admin/includes/plugin.php: validate_active_plugins() |
Validate active plugins |
wp-admin/includes/user.php: edit_user() |
Edit user settings based on contents of $_POST |
wp-admin/includes/user.php: wp_delete_user() |
Remove user and optionally reassign posts and links to another user. |
wp-admin/includes/class-wp-themes-list-table.php: WP_Themes_List_Table::no_items() | |
wp-admin/includes/class-wp-themes-list-table.php: WP_Themes_List_Table::display_rows() | |
wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::single_row() |
Generate HTML for a single row on the users.php admin panel. |
wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::get_bulk_actions() |
Retrieve an associative array of bulk actions available on this table. |
wp-admin/includes/media.php: media_upload_form() |
Outputs the legacy media upload form. |
wp-admin/includes/ajax-actions.php: wp_ajax_query_themes() |
Ajax handler for getting themes from themes_api(). |
wp-admin/includes/ajax-actions.php: wp_ajax_autocomplete_user() |
Ajax handler for user autocomplete. |
wp-admin/includes/class-wp-importer.php: WP_Importer::set_blog() | |
wp-includes/class-wp-user.php: WP_User::has_cap() |
Whether the user has a specific capability. |
wp-includes/class-wp-user.php: WP_User::get_role_caps() |
Retrieves all of the capabilities of the roles of the user, and merges them with individual user capabilities. |
wp-includes/capabilities.php: current_user_can_for_blog() |
Whether the current user has a specific capability for a given site. |
wp-includes/capabilities.php: is_super_admin() |
Determine if user is a site admin. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::enqueue_control_scripts() |
Enqueue scripts for customize controls. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::register_controls() |
Register some default controls. |
wp-includes/capabilities.php: map_meta_cap() |
Map meta capabilities to primitive capabilities. |
wp-includes/cache.php: WP_Object_Cache::__construct() |
Sets up object properties; PHP 5 style constructor. |
wp-includes/theme.php: wp_get_themes() |
Returns an array of WP_Theme objects based on the arguments. |
wp-includes/l10n.php: load_default_textdomain() |
Load default translated strings based on locale. |
wp-includes/l10n.php: get_locale() |
Retrieves the current locale. |
wp-includes/formatting.php: sanitize_option() |
Sanitises various option values based on the nature of the option. |
wp-includes/deprecated.php: wp_admin_bar_dashboard_view_site_menu() |
Add the “Dashboard”/”Visit Site” menu. |
wp-includes/class-wp-theme.php: WP_Theme::get_allowed_on_site() |
Returns array of stylesheet names of themes allowed on the site. |
wp-includes/class-wp-theme.php: WP_Theme::is_allowed() |
Whether the theme is allowed (multisite only). |
wp-includes/load.php: wp_not_installed() |
Redirect to the installer if WordPress is not installed. |
wp-includes/load.php: wp_get_active_and_valid_plugins() |
Retrieve an array of active and valid plugin files. |
wp-includes/functions.php: is_main_site() |
Determine whether a site is the main site of the current network. |
wp-includes/functions.php: is_main_network() |
Determine whether a network is the main network of the Multisite installation. |
wp-includes/functions.php: global_terms_enabled() |
Determine whether global terms are enabled. |
wp-includes/default-constants.php: wp_initial_constants() |
Defines initial WordPress constants |
wp-includes/link-template.php: get_dashboard_url() |
Retrieves the URL to the user’s dashboard. |
wp-includes/link-template.php: network_site_url() |
Retrieves the site URL for the current network. |
wp-includes/link-template.php: network_home_url() |
Retrieves the home URL for the current network. |
wp-includes/link-template.php: network_admin_url() |
Retrieves the URL to the admin area for the network. |
wp-includes/link-template.php: get_home_url() |
Retrieves the URL for a given site where the front end is accessible. |
wp-includes/link-template.php: get_site_url() |
Retrieves the URL for a given site where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible. |
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::initialize() | |
wp-includes/update.php: wp_version_check() |
Check WordPress version against the newest version. |
wp-includes/admin-bar.php: wp_admin_bar_wp_menu() |
Add the WordPress logo menu. |
wp-includes/admin-bar.php: wp_admin_bar_my_account_item() |
Add the “My Account” item. |
wp-includes/admin-bar.php: wp_admin_bar_my_account_menu() |
Add the “My Account” submenu items. |
wp-includes/admin-bar.php: wp_admin_bar_site_menu() |
Add the “Site Name” menu. |
wp-includes/admin-bar.php: wp_admin_bar_my_sites_menu() |
Add the “My Sites/[Site Name]” menu and all submenus. |
wp-includes/admin-bar.php: wp_admin_bar_new_content_menu() |
Add “Add New” menu. |
wp-includes/option.php: wp_load_alloptions() |
Loads and caches all autoloaded options, if available or all options. |
wp-includes/option.php: wp_load_core_site_options() |
Loads and caches certain often requested site options if is_multisite() and a persistent cache is not being used. |
wp-includes/class-wp-user-query.php: WP_User_Query::prepare_query() |
Prepare the query variables. |
wp-includes/user.php: get_blogs_of_user() |
Get the sites a user belongs to. |
wp-includes/user.php: is_user_member_of_blog() |
Find out whether a user is a member of a given blog. |
wp-includes/user.php: count_users() |
Count number of users who have each of the user roles. |
wp-includes/user.php: wp_authenticate_spam_check() |
For Multisite blogs, check if the authenticated user has been marked as a spammer, or if the user’s primary blog has been marked as spam. |
wp-includes/media.php: wp_plupload_default_settings() |
Prints default Plupload arguments. |
wp-includes/post.php: wp_delete_attachment() |
Trash or delete an attachment. |
wp-includes/class-wp-rewrite.php: WP_Rewrite::rewrite_rules() |
Constructs rewrite matches and queries from permalink structure. |
wp-includes/canonical.php: redirect_canonical() |
Redirects incoming links to the proper URL based on the site url. |
wp-includes/ms-functions.php: get_active_blog_for_user() |
Get one of a user’s active blogs |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newMediaObject() |
Uploads a file, following your settings. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getUsersBlogs() |
Retrieve blogs that user owns. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUsersBlogs() |
Retrieve the blogs of the user. |
wp-includes/wp-db.php: wpdb::print_error() |
Print SQL/DB error. |
wp-includes/wp-db.php: wpdb::tables() |
Returns an array of WordPress tables. |
wp-includes/wp-db.php: wpdb::init_charset() |
Set $this->charset and $this->collate |
wp-includes/wp-db.php: wpdb::set_prefix() |
Sets the table prefix for the WordPress tables. |
wp-includes/wp-db.php: wpdb::get_blog_prefix() |
Gets blog prefix. |
wp-includes/script-loader.php: wp_default_scripts() |
Register all WordPress scripts. |
wp-includes/media-template.php: wp_print_media_templates() |
Prints the templates used in the media manager. |