akcjaod 4.4.0
ms_network_not_found
Opis — z kodu źródłowego
Fires when a network cannot be found based on the requested domain and path.
At the time of this action, the only recourse is to redirect somewhere and exit. If you want to declare a particular network, do so earlier.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$domain | string | The domain used to search for a network. |
$path | string | The path used to search for a path. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'ms_network_not_found', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'ms_network_not_found', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii