WP HOOKS
akcjadynamicznyod 2.9.0

update_site_option_{$option}

Args 4Plik wp-includes/option.php

Opis — z kodu źródłowego

Fires after the value of a specific network option has been successfully updated.

The dynamic portion of the hook name, $option, refers to the option name.

Parametry

ParametrTypOpis
$optionstringName of the network option.
$valuemixedCurrent value of the network option.
$old_valuemixedOld value of the network option.
$network_idintID of the network.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'update_site_option_{$option}', 'twoja_funkcja', 10, 4 );

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

Popularne w tej kategorii