WP HOOKS
akcjaod 2.9.0

updated_postmeta

Args 4Plik wp-includes/meta.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires immediately after updating a post's metadata.

Parametry

ParametrTypOpis
$meta_idintID of updated metadata entry.
$object_idintPost ID.
$meta_keystringMetadata key.
$meta_valuemixedMetadata value. This will be a PHP-serialized string representation of the value if the value is an array, an object, or itself a PHP-serialized string.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'updated_postmeta', 'twoja_funkcja', 10, 4 );

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