返回介绍

is_multisite()

发布于 2017-09-11 01:19:04 字数 10273 浏览 938 评论 0 收藏 0

is_multisite()

If Multisite is enabled.


description


返回值

(bool) True if Multisite is enabled, false otherwise.


源代码

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;
}

更新日志

Versiondescription
3.0.0Introduced.

相关函数

Used By

  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::get_user()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::check_role_update()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::delete_item()
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php: WP_REST_Users_Controller::create_item()
  • wp-includes/option.php: register_initial_settings()
  • wp-includes/class-wp-theme.php: WP_Theme::network_enable_theme()
  • wp-includes/class-wp-theme.php: WP_Theme::network_disable_theme()
  • wp-includes/load.php: get_current_network_id()
  • wp-admin/includes/ajax-actions.php: wp_ajax_install_theme()
  • wp-admin/includes/ajax-actions.php: wp_ajax_install_plugin()
  • wp-includes/general-template.php: has_custom_logo()
  • wp-includes/general-template.php: get_custom_logo()
  • wp-includes/functions.php: _wp_upload_dir()
  • wp-includes/rest-api.php: get_rest_url()
  • wp-includes/user.php: wp_get_users_with_no_role()
  • wp-includes/user.php: get_password_reset_key()
  • wp-includes/option.php: update_network_option()
  • wp-includes/option.php: add_network_option()
  • wp-includes/option.php: delete_network_option()
  • wp-includes/option.php: get_network_option()
  • wp-includes/general-template.php: get_site_icon_url()
  • wp-includes/functions.php: get_main_network_id()
  • wp-admin/includes/file.php: _wp_handle_upload()
  • wp-login.php: retrieve_password()
  • wp-login.php: login_header()
  • wp-admin/includes/network.php: network_step2()
  • wp-admin/includes/class-plugin-upgrader.php: Plugin_Upgrader::bulk_upgrade()
  • wp-admin/includes/class-theme-upgrader.php: Theme_Upgrader::bulk_upgrade()
  • wp-admin/includes/theme.php: delete_theme()
  • wp-admin/includes/theme.php: get_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()
  • wp-admin/includes/deprecated.php: WP_User_Search::prepare_query()
  • wp-admin/includes/deprecated.php: get_author_user_ids()
  • wp-admin/includes/deprecated.php: get_editable_user_ids()
  • wp-admin/includes/deprecated.php: get_nonauthor_user_ids()
  • wp-admin/includes/class-plugin-installer-skin.php: Plugin_Installer_Skin::after()
  • wp-includes/capabilities.php: grant_super_admin()
  • wp-includes/capabilities.php: revoke_super_admin()
  • wp-admin/includes/misc.php: save_mod_rewrite_rules()
  • wp-admin/includes/misc.php: iis7_save_url_rewrite_rules()
  • wp-admin/includes/misc.php: update_home_siteurl()
  • wp-admin/includes/schema.php: populate_network()
  • wp-admin/includes/schema.php: wp_get_db_schema()
  • wp-admin/includes/schema.php: populate_options()
  • wp-admin/includes/update.php: update_nag()
  • wp-admin/includes/update.php: wp_plugin_update_row()
  • wp-admin/includes/dashboard.php: wp_dashboard_quota()
  • wp-admin/includes/upgrade.php: pre_schema_upgrade()
  • wp-admin/includes/upgrade.php: wp_upgrade()
  • wp-admin/includes/upgrade.php: wp_install_defaults()
  • wp-admin/includes/plugin.php: _get_dropins()
  • wp-admin/includes/plugin.php: is_plugin_active_for_network()
  • wp-admin/includes/plugin.php: activate_plugin()
  • wp-admin/includes/plugin.php: deactivate_plugins()
  • wp-admin/includes/plugin.php: validate_active_plugins()
  • wp-admin/includes/user.php: edit_user()
  • wp-admin/includes/user.php: wp_delete_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()
  • wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::get_bulk_actions()
  • wp-admin/includes/class-wp-users-list-table.php: WP_Users_List_Table::display_rows()
  • wp-admin/includes/media.php: media_upload_form()
  • wp-admin/includes/ajax-actions.php: wp_ajax_query_themes()
  • wp-admin/includes/ajax-actions.php: wp_ajax_autocomplete_user()
  • wp-admin/includes/class-wp-importer.php: WP_Importer::set_blog()
  • wp-includes/class-wp-user.php: WP_User::has_cap()
  • wp-includes/capabilities.php: is_super_admin()
  • wp-includes/capabilities.php: current_user_can_for_blog()
  • wp-includes/capabilities.php: map_meta_cap()
  • wp-includes/cache.php: WP_Object_Cache::__construct()
  • wp-includes/theme.php: wp_get_themes()
  • wp-includes/l10n.php: load_default_textdomain()
  • wp-includes/l10n.php: get_locale()
  • wp-includes/formatting.php: sanitize_option()
  • wp-includes/deprecated.php: wp_admin_bar_dashboard_view_site_menu()
  • wp-includes/class-wp-theme.php: WP_Theme::get_allowed_on_site()
  • wp-includes/class-wp-theme.php: WP_Theme::is_allowed()
  • wp-includes/load.php: wp_not_installed()
  • wp-includes/load.php: wp_get_active_and_valid_plugins()
  • wp-includes/functions.php: is_main_site()
  • wp-includes/functions.php: is_main_network()
  • wp-includes/functions.php: global_terms_enabled()
  • wp-includes/link-template.php: get_dashboard_url()
  • wp-includes/default-constants.php: wp_initial_constants()
  • wp-includes/link-template.php: network_site_url()
  • wp-includes/link-template.php: network_home_url()
  • wp-includes/link-template.php: network_admin_url()
  • wp-includes/link-template.php: get_home_url()
  • wp-includes/link-template.php: get_site_url()
  • wp-includes/class-wp-admin-bar.php: WP_Admin_Bar::initialize()
  • wp-includes/update.php: wp_version_check()
  • wp-includes/admin-bar.php: wp_admin_bar_wp_menu()
  • wp-includes/admin-bar.php: wp_admin_bar_my_account_item()
  • wp-includes/admin-bar.php: wp_admin_bar_my_account_menu()
  • wp-includes/admin-bar.php: wp_admin_bar_site_menu()
  • wp-includes/admin-bar.php: wp_admin_bar_my_sites_menu()
  • wp-includes/admin-bar.php: wp_admin_bar_new_content_menu()
  • wp-includes/option.php: wp_load_alloptions()
  • wp-includes/option.php: wp_load_core_site_options()
  • wp-includes/class-wp-user-query.php: WP_User_Query::prepare_query()
  • wp-includes/user.php: get_blogs_of_user()
  • wp-includes/user.php: is_user_member_of_blog()
  • wp-includes/user.php: count_users()
  • wp-includes/user.php: wp_authenticate_spam_check()
  • wp-includes/media.php: wp_plupload_default_settings()
  • wp-includes/post.php: wp_delete_attachment()
  • wp-includes/class-wp-rewrite.php: WP_Rewrite::rewrite_rules()
  • wp-includes/canonical.php: redirect_canonical()
  • wp-includes/ms-functions.php: get_active_blog_for_user()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newMediaObject()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::blogger_getUsersBlogs()
  • wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::wp_getUsersBlogs()
  • wp-includes/wp-db.php: wpdb::tables()
  • wp-includes/wp-db.php: wpdb::print_error()
  • wp-includes/wp-db.php: wpdb::init_charset()
  • wp-includes/wp-db.php: wpdb::set_prefix()
  • wp-includes/wp-db.php: wpdb::get_blog_prefix()
  • wp-includes/script-loader.php: wp_default_scripts()
  • wp-includes/media-template.php: wp_print_media_templates()
  • Show 120 more used by Hide more used by

User Contributed Notes

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文