apply_filters( ‘domain_exists’, int|null $result, string $domain, string $path, int $network_id )

In this article

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. Only relevant on multi-network installations.

Source

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

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.