wpseek.com
WordPress开发者和主题制作者的搜索引擎



domain_exists › WordPress过滤钩子

Since3.5.0
已弃用n/a
apply_filters( 'domain_exists', $result, $domain, $path, $network_id )
参数: (4)
  • (int|null) $result The site ID if the site name exists, null otherwise.
    Required: Yes
  • (string) $domain Domain to be checked.
    Required: Yes
  • (string) $path Path to be checked.
    Required: Yes
  • (int) $network_id Network ID. Only relevant on multi-network installations.
    Required: Yes
定义在:
文档:

Filters whether a site name is taken.

The name is the site's subdomain or the site's subdirectory path depending on the network settings.





源码

return apply_filters( 'domain_exists', $result, $domain, $path, $network_id );