akcjaod 6.9.0
after_upgrade_to_multisite
Opis — z kodu źródłowego
Fires after a network is created when converting a single site to multisite.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$network_id | int | ID of network created. |
$domain | string | The domain name for the network. |
$email | string | Email address for the network administrator. |
$site_name | string | The name of the network. |
$path | string | The path to append to the network's domain name. |
$subdomain_install | bool | Whether the network is a subdomain installation or a subdirectory installation. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'after_upgrade_to_multisite', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'after_upgrade_to_multisite', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}Popularne w tej kategorii