apply_filters( 'domain_exists', int|null $result, string $domain, string $path, int $network_id )
- Since
- 3.5.0
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.
Compatibility
- WordPress
- since 3.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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. Only relevant on multi-network installations.
Where this hook fires · 1
wp-includes/ms-functions.php:1635domain_exists()
Source code
* * @param int|null $result The site ID if the site name exists, null otherwise. * @param string $domain Domain to be checked. * @param string $path Path to be checked. * @param int $network_id Network ID. Only relevant on multi-network installations. */ return apply_filters( 'domain_exists', $result, $domain, $path, $network_id );} /** * Notifies the site administrator that their site activation was successful. * * Filter {@see 'wpmu_welcome_notification'} to disable or bypass.Changelog
Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.