akcjaod 3.0.0
update_site_option
Opis — z kodu źródłowego
Fires after the value of a network option has been successfully updated.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$option | string | Name of the network option. |
$value | mixed | Current value of the network option. |
$old_value | mixed | Old value of the network option. |
$network_id | int | ID of the network. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'update_site_option', '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_action( 'update_site_option', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii