WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/domain exists

Contents

Description

Check whether a blogname is already taken.

Used during the new site registration process to ensure that each blogname is unique.


Greatestwebads.com

This name is already being used by myself on Wordpress.com

This is my domain name

I post primary the greatest advertisements/best marketing/ greates atheletes

focus primary on the greatest businesses, ideas, people.

Sheedy

Usage

<?php domain_exists$domain$path$site_id ); ?>

Parameters

$domain
(string) (required) The domain to be checked.
Default: None
$path
(string) (required) The path to be checked.
Default: None
$site_id
(int) (optional) Optional. Relevant only on multi-network installs.
Default: 1

Return Values

(int) 

Filters

  • 'domain_exists' called on return value:
    apply_filters( 'domain_exists', $result, $domain, $path, $site_id )

Change Log

  • Since: MU
  • 'domain_exists' filter added in 3.5

Source File

domain_exists() is located in wp-includes/ms-functions.php