WP HOOKS
filtrod 3.5.0

domain_exists

Args 4Plik wp-includes/ms-functions.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether a site name is taken.

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

Parametry

ParametrTypOpis
$resultint | nullThe site ID if the site name exists, null otherwise.
$domainstringDomain to be checked.
$pathstringPath to be checked.
$network_idintNetwork ID. Only relevant on multi-network installations.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'domain_exists', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}