Wordpress 钩子:domain_exists
文章目录
过滤是否采用站点名称。
原型
apply_filters( 'domain_exists', int|null $result, string $domain, string $path, int $network_id )
描述
该名称是站点的子域或站点的子目录路径,具体取决于网络设置。
参数
$result
(int|null)
如果站点名称存在,则为站点ID,否则为null。
$domain
(string)
要检查的域。
$path
(string)
要检查的路径。
$network_id
(int)
网络ID。仅与多网络安装相关。
源文件
路径:wp-includes/ms-functions.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/domain_exists/
文章作者 iBllex
上次更新 2019-02-12