akcjaod 2.9.0
updated_postmeta
Opis — z kodu źródłowego
Fires immediately after updating a post's metadata.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$meta_id | int | ID of updated metadata entry. |
$object_id | int | Post ID. |
$meta_key | string | Metadata key. |
$meta_value | mixed | Metadata 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
}
// 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
}