domain_exists WordPress Filter Hook
The domain_exists hook is used to check if a given domain is already registered. If the domain is not registered, the hook will return false.
apply_filters( 'domain_exists', int|null $result , string $domain , string $path , int $network_id ) #
Filters whether a site name is taken.
Description
The name is the site’s subdomain or the site’s subdirectory path depending on the network settings.
Parameters
- $result
(int|null)The site ID if the site name exists, null otherwise.
- $domain
(string)Domain to be checked.
- $path
(string)Path to be checked.
- $network_id
(int)Network ID. Relevant only on multi-network installations.
Source
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |