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

Filters whether a site name is taken.

Description Description

The name is the site’s subdomain or the site’s subdirectory path depending on the network settings.

Parameters Parameters


(int|null) The site ID if the site name exists, null otherwise.


(string) Domain to be checked.


(string) Path to be checked.


(int) Network ID. Relevant only on multi-network installations.

Top ↑

Source Source

File: wp-includes/ms-functions.php

View on Trac

Top ↑

Changelog Changelog

Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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