Core Function
View Source on Trac ↗ domain_exists()
domain_exists( mixed $domain, mixed $path, mixed $network_id = 1 ) Checks whether a site name is already taken.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $domain string | The domain to be checked. Required |
| $path string | The path to be checked. Required |
| int | $network_id Optional. Network ID. Only relevant on multi-network installations. Default 1. Required |
Return Value
((int)
| null) The site ID if the site name exists, null otherwise.
Function Information
Since Version
MU (3.0.0)
Source File
wp-includes/ms-functions.php
Advertisement