On this page
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
$resultint|null-
The site ID if the site name exists, null otherwise.
$domainstring-
Domain to be checked.
$pathstring-
Path to be checked.
$network_idint-
Network ID. Relevant only on multi-network installations.
Source
File: wp-includes/ms-functions.php. View all references
return apply_filters( 'domain_exists', $result, $domain, $path, $network_id );
Related
Used By
| Used By | Description |
|---|---|
| domain_exists() wp-includes/ms-functions.php | Checks whether a site name is already taken. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/domain_exists