domain_exists
apply_filters( ‘domain_exists’, int|null $result , string $domain , string $path , int $network_id )
筛选挂钩:筛选是否采用站点名称。
Filter Hook: Filters whether a site name is taken.
说明(Description)
名称是站点的子域或站点的子目录路径,具体取决于网络设置。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$result | (int | null) | 如果站点名称存在,则为站点ID,否则为空。 |
$domain | (string) | 要检查的域。 |
$path | (string) | 要检查的路径。 |
$network_id | (int) | 网络ID。仅与多个网络安装相关。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.5.0 | wp-includes/ms-functions.php:1547 | 1 | 0 |
domain_exists 为WP2原创文章,链接:https://www.wp2.cn/hook/domain_exists/