A WordPress-centric search engine for devs and theme authors



domain_exists ›

Since3.5.0
Deprecatedn/a
apply_filters( 'domain_exists', $result, $domain, $path, $network_id )
Parameters: (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. Relevant only on multi-network installations.
    Required: Yes
Defined at:
Codex:

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.





Source

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