Fires immediately before updating a post’s metadata.
Parameters
$meta_id
int- ID of metadata entry to update.
$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.
Source
do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.