domain_exists()判断子域名是否已经存在(多站点)

目录

描述

Check whether a blogname is already taken.

Used during the new site registration process to ensure that each blogname is unique.

domain_exists() 描述

用法

<?php domain_exists$domain$path$site_id ); ?>

domain_exists() 用法

参数

$domain

(string) (必填) The domain to be checked.

默认值: None

$path

(string) (必填) The path to be checked.

默认值: None

$site_id

(int) (可选) Optional. Relevant only on multi-network installs.

默认值: 1

domain_exists() 参数

返回值

(int

domain_exists() 返回值

历史

  • 添加于 版本: MU
  • 'domain_exists' filter added in 3.5

domain_exists() 历史