filtrod 3.5.0
domain_exists
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
| Parametr | Typ | Opis |
|---|---|---|
$result | int | null | The site ID if the site name exists, null otherwise. |
$domain | string | Domain to be checked. |
$path | string | Path to be checked. |
$network_id | int | Network 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
}
// 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
}