wpseek.com
A WordPress-centric search engine for devs and theme authors



domain_exists › WordPress Function

Since
Deprecatedn/a
domain_exists ( $domain, $path, $network_id = 1 )
Parameters: (3)
  • (string) $domain The domain to be checked.
    Required: Yes
  • (string) $path The path to be checked.
    Required: Yes
  • (int) $network_id Optional. Network ID. Only relevant on multi-network installations. Default 1.
    Required: No
    Default: 1
Returns:
  • (int|null) The site ID if the site name exists, null otherwise.
Defined at:
Codex:
Change Log:
  • MU

Checks whether a site name is already taken.

The name is the site's subdomain or the site's subdirectory path depending on the network settings. Used during the new site registration process to ensure that each site name is unique.


Source

Soon...