is_subdomain_install() - WordPress 函数参考中文文档

返回介绍

is_subdomain_install()

发布于 2017-09-11 字数1879 浏览 941 评论 0

is_subdomain_install()

Whether a subdomain configuration is enabled.


描述


返回值

(bool) True if subdomain configuration is enabled, false otherwise.


源代码

File: wp-includes/ms-load.php

function is_subdomain_install() {
	if ( defined('SUBDOMAIN_INSTALL') )
		return SUBDOMAIN_INSTALL;

	return ( defined( 'VHOST' ) && VHOST == 'yes' );
}

更新日志

Version 描述
3.0.0 Introduced.

相关函数

Used By

  • wp-signup.php:
    show_blog_form()
  • wp-admin/includes/network.php:
    network_step2()
  • wp-admin/includes/ms.php:
    avoid_blog_page_permalink_collision()
  • wp-admin/includes/class-wp-ms-sites-list-table.php:
    WP_MS_Sites_List_Table::prepare_items()
  • wp-includes/ms-functions.php:
    wpmu_create_blog()
  • wp-includes/ms-functions.php:
    install_blog()
  • wp-includes/ms-functions.php:
    wpmu_validate_blog_signup()
  • wp-includes/ms-functions.php:
    wpmu_signup_blog_notification()
  • wp-includes/ms-deprecated.php:
    get_blogaddress_by_domain()
  • wp-includes/ms-blogs.php:
    get_blogaddress_by_name()
  • wp-includes/ms-blogs.php:
    get_id_from_blogname()
  • wp-includes/ms-blogs.php:
    get_blog_details()
  • wp-includes/ms-default-constants.php:
    ms_cookie_constants()
  • Show 8 more used by
    Hide more used by


User Contributed Notes

上一篇:is_sticky()

下一篇:is_success()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!