domain_exists

Advertisement

Summery Summery

Filters whether a site name is taken.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$result

The site ID if the site name exists, null otherwise.

$domain

Domain to be checked.

$path

Path to be checked.

$network_id

Network ID. Relevant only on multi-network installations.

Source Source

File: wp-includes/ms-functions.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Advertisement

Leave a Reply