^ 回到顶部
  • 人生没有定律,每个人都有自己的节奏
  • 本站wordpress建站教程均通过实践后发布,希望对你有帮助
  • 希望你的坚持,都是因为热爱,而不是因为不甘心
  • 8年wordpress建站经验,5星服务品质
  • 那些不愿意让你吃亏的人,才是真正值得你深交的人,也是值得你付出时间的人
  • 阿里云2核2g仅需86元/年

wordpress函数is_multisite()用法示例

is_multisite()

If Multisite is enabled.


描述


返回值

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

新用户2核2g仅需86元/年    领取1153套模板    免费cdn流量包    ¥3188礼包


源代码

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

更新日志

Version 描述
3.0.0 Introduced.

相关函数

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


让小雨知道,这篇文章帮到了你
扫码关注微信公众号zs40086(微搜片)随时随地微信看片,抢先福利电影等你来

热门推荐

如有疑问,请前往问答中心反馈!

反馈