is_multisite()
If Multisite is enabled.
Return
(bool) True if Multisite is enabled, false otherwise.
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;
}
Related
Used By
Used By | Description |
---|---|
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::should_suggest_persistent_object_cache() |
Determines whether to suggest using a persistent object cache. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_plugin_version() |
Tests if plugins are outdated, or unnecessary. |
wp-admin/includes/class-wp-site-health.php: WP_Site_Health::get_test_theme_version() |
Tests if themes are outdated, or unnecessary. |
wp-admin/includes/plugin.php: deactivated_plugins_notice() |
Renders an admin notice when a plugin was deactivated during an update. |
wp-admin/includes/ajax-actions.php: wp_ajax_health_check_get_sizes() |
Ajax handler for site health check to get directories and database sizes. |
wp-admin/includes/class-wp-site-health-auto-updates.php: WP_Site_Health_Auto_Updates::test_wp_version_check_attached() |
Checks if updates are intercepted by a filter. |
wp-admin/includes/class-wp-debug-data.php: WP_Debug_Data::debug_data() |
Static function for generating site debug data when required. |
wp-admin/includes/schema.php: populate_network_meta() |
Creates WordPress network meta and sets the default values. |
wp-includes/embed.php: get_oembed_response_data_for_url() |
Retrieves the oEmbed response data for a given URL. |
wp-includes/user.php: wp_maybe_update_user_counts() |
Updates the total count of users on the site if live user counting is enabled. |
wp-includes/user.php: wp_update_user_counts() |
Updates the total count of users on the site. |
wp-includes/user.php: wp_is_large_user_count() |
Determines whether the site has a large number of users. |
wp-includes/class-wp-recovery-mode.php: WP_Recovery_Mode::is_network_plugin() |
Checks whether the given extension a network activated plugin. |
wp-includes/class-wp-fatal-error-handler.php: WP_Fatal_Error_Handler::display_default_error_template() |
Displays the default PHP error template. |
wp-includes/class-wp-fatal-error-handler.php: WP_Fatal_Error_Handler::handle() |
Runs the shutdown handler. |
wp-includes/capabilities.php: wp_maybe_grant_site_health_caps() |
Filters the user capabilities to grant the ‘view_site_health_checks’ capabilities as necessary. |
wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php: WP_REST_Site_Health_Controller::register_routes() |
Registers API routes. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::get_item_schema() |
Retrieves the plugin’s schema, conforming to JSON Schema. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::get_collection_params() |
Retrieves the query params for the collections. |
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php: WP_REST_Application_Passwords_Controller::get_user() |
Gets the requested user. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::register_routes() |
Registers the routes for the plugins controller. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::check_read_permission() |
Checks if the given plugin can be viewed by the current user. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::plugin_status_permission_check() |
Handle updating a plugin’s status. |
wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php: WP_REST_Plugins_Controller::handle_plugin_status() |
Handle updating a plugin’s status. |
wp-includes/functions.php: is_site_meta_supported() |
Determines whether site meta is enabled. |
wp-includes/user.php: retrieve_password() |
Handles sending a password retrieval email to a user. |
wp-includes/deprecated.php: wp_admin_bar_dashboard_view_site_menu() |
Add the “Dashboard”/”Visit Site” menu. |
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/customize/class-wp-customize-theme-control.php: WP_Customize_Theme_Control::content_template() |
Render a JS template for theme display. |
wp-includes/general-template.php: get_login_image_html() |
Return the HTML for the image on the login screen. This is either a link showing the ClassicPress logo (the default) or the site’s custom login image (if enabled). |
wp-includes/general-template.php: wp_lostpassword_url() |
Returns the URL that allows the user to reset the lost password. |
wp-includes/general-template.php: get_site_icon_url() |
Returns the Site Icon URL. |
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 unless the theme supports removing the link on the home page. |
wp-includes/class-wp-user-query.php: WP_User_Query::prepare_query() |
Prepares the query variables. |
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::create_item() |
Creates a single user. |
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::check_role_update() |
Determines if the current user is allowed to make the desired roles change. |
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-user.php: WP_User::get_role_caps() |
Retrieves all of the capabilities of the user’s roles, and merges them with individual user capabilities. |
wp-includes/class-wp-user.php: WP_User::has_cap() |
Returns whether the user has the specified capability. |
wp-includes/l10n.php: load_default_textdomain() |
Loads default translated strings based on locale. |
wp-includes/l10n.php: get_locale() |
Retrieves the current locale. |
wp-includes/default-constants.php: wp_initial_constants() |
Defines initial ClassicPress constants |
wp-includes/media-template.php: wp_print_media_templates() |
Prints the templates used in the media manager. |
wp-includes/admin-bar.php: wp_admin_bar_new_content_menu() |
Adds “Add New” menu. |
wp-includes/admin-bar.php: wp_admin_bar_wp_menu() |
Adds the WordPress logo menu. |
wp-includes/admin-bar.php: wp_admin_bar_my_account_item() |
Adds the “My Account” item. |
wp-includes/admin-bar.php: wp_admin_bar_my_account_menu() |
Adds the “My Account” submenu items. |
wp-includes/admin-bar.php: wp_admin_bar_site_menu() |
Adds the “Site Name” menu. |
wp-includes/admin-bar.php: wp_admin_bar_my_sites_menu() |
Adds the “My Sites/[Site Name]” menu and all submenus. |
wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::initialize() |
Initializes the admin bar. |
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_dashboard_url() |
Retrieves the URL to the user’s dashboard. |
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/capabilities.php: is_super_admin() |
Determines whether user is a site admin. |
wp-includes/capabilities.php: grant_super_admin() |
Grants Super Admin privileges. |
wp-includes/capabilities.php: revoke_super_admin() |
Revokes Super Admin privileges. |
wp-includes/capabilities.php: map_meta_cap() |
Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked. |
wp-includes/capabilities.php: current_user_can_for_blog() |
Returns whether the current user has the specified capability for a given site. |
wp-includes/user.php: wp_get_users_with_no_role() |
Gets 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/user.php: wp_insert_user() |
Inserts a user into the database. |
wp-includes/user.php: get_blogs_of_user() |
Gets the sites a user belongs to. |
wp-includes/user.php: is_user_member_of_blog() |
Finds out whether a user is a member of a given blog. |
wp-includes/user.php: count_users() |
Counts number of users who have each of the user roles. |
wp-includes/class-wpdb.php: wpdb::init_charset() |
Sets $this->charset and $this->collate. |
wp-includes/class-wpdb.php: wpdb::set_prefix() |
Sets the table prefix for the WordPress tables. |
wp-includes/class-wpdb.php: wpdb::get_blog_prefix() |
Gets blog prefix. |
wp-includes/class-wpdb.php: wpdb::tables() |
Returns an array of WordPress tables. |
wp-includes/class-wpdb.php: wpdb::print_error() |
Prints SQL/DB error. |
wp-includes/user.php: wp_authenticate_spam_check() |
For Multisite blogs, checks if the authenticated user has been marked as a spammer, or if the user’s primary blog has been marked as spam. |
wp-includes/class-wp-theme.php: WP_Theme::is_allowed() |
Determines whether the theme is allowed (multisite only). |
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::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/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getUsersBlogs() |
Retrieves blogs that user owns. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newMediaObject() |
Uploads a file, following your settings. |
wp-includes/theme.php: wp_get_themes() |
Returns an array of WP_Theme objects based on the arguments. |
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUsersBlogs() |
Retrieves the blogs of the user. |
wp-includes/option.php: register_initial_settings() |
Registers default settings available in WordPress. |
wp-includes/option.php: get_network_option() |
Retrieves a network’s option value based on the option name. |
wp-includes/option.php: add_network_option() |
Adds a new network option. |
wp-includes/option.php: delete_network_option() |
Removes a network option by name. |
wp-includes/option.php: update_network_option() |
Updates the value of a network option that was already added. |
wp-includes/option.php: delete_expired_transients() |
Deletes all expired transients. |
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/option.php: wp_load_alloptions() |
Loads and caches all autoloaded options, if available or all options. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::enqueue_control_scripts() |
Enqueues scripts for customize controls. |
wp-includes/class-wp-customize-manager.php: WP_Customize_Manager::register_controls() |
Registers some default controls. |
wp-includes/class-wp-object-cache.php: WP_Object_Cache::__construct() |
Sets up object properties; PHP 5 style constructor. |
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/rest-api.php: get_rest_url() |
Retrieves the URL to a REST endpoint on a site. |
wp-includes/post.php: wp_delete_attachment() |
Trashes or deletes an attachment. |
wp-includes/functions.php: get_dirsize() |
Gets the size of a directory. |
wp-includes/class-wp-roles.php: WP_Roles::get_roles_data() |
Gets the available roles data. |
wp-includes/ms-functions.php: get_active_blog_for_user() |
Gets one of a user’s active blogs. |
wp-includes/user.php: get_user_count() |
Returns the number of active users in your installation. |
wp-includes/formatting.php: sanitize_option() |
Sanitizes various option values based on the nature of the option. |
wp-includes/load.php: get_current_network_id() |
Retrieves the current network ID. |
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/update.php: wp_version_check() |
Checks WordPress version against the newest version. |
wp-includes/functions.php: is_main_site() |
Determines whether a site is the main site of the current network. |
wp-includes/functions.php: get_main_site_id() |
Gets the main site ID. |
wp-includes/functions.php: is_main_network() |
Determines whether a network is the main network of the Multisite installation. |
wp-includes/functions.php: get_main_network_id() |
Gets the main network ID. |
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/functions.php: wp_upload_bits() |
Creates a file in the upload folder with given content. |
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-wp-plugins-list-table.php: WP_Plugins_List_Table::__construct() |
Constructor. |
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/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/misc.php: update_home_siteurl() |
Flushes rewrite rules if siteurl, home or page_on_front changed. |
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/media.php: media_upload_form() |
Outputs the legacy media upload form. |
wp-admin/includes/schema.php: populate_network() |
Populate network settings. |
wp-admin/includes/network.php: network_step2() |
Prints step 2 for Network installation process. |
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/class-wp-importer.php: WP_Importer::set_blog() | |
wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::bulk_upgrade() |
Upgrade several themes at once. |
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-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/upgrade.php: pre_schema_upgrade() |
Runs before the schema is upgraded. |
wp-admin/includes/upgrade.php: wp_install_defaults() |
Creates the initial content for a newly-installed site. |
wp-admin/includes/upgrade.php: wp_upgrade() |
Runs WordPress Upgrade functions. |
wp-admin/includes/theme.php: delete_theme() |
Removes a theme. |
wp-admin/includes/theme.php: get_theme_update_available() |
Retrieves the update link if there is a theme update available. |
wp-admin/includes/theme.php: wp_prepare_themes_for_js() |
Prepares themes for JavaScript. |
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/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() |
Deactivates a single plugin or multiple plugins. |
wp-admin/includes/plugin.php: validate_active_plugins() |
Validates active plugins. |
wp-admin/includes/plugin.php: _get_dropins() |
Returns drop-ins that ClassicPress uses. |
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/file.php: _wp_handle_upload() |
Handles PHP uploads in ClassicPress. |
wp-admin/includes/class-plugin-installer-skin.php: Plugin_Installer_Skin::after() |
Action to perform following a plugin install. |
wp-admin/includes/dashboard.php: wp_dashboard_quota() |
Displays file upload quota on dashboard. |
wp-admin/includes/update.php: wp_plugin_update_row() |
Displays update information for a plugin. |
wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::bulk_upgrade() |
Bulk upgrade several plugins at once. |
wp-admin/includes/update.php: update_nag() |
Returns core update notification message. |
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. |
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |