Fires immediately before updating a post’s metadata.
Parameters
$meta_idint- ID of metadata entry to update.
$object_idint- Post ID.
$meta_keystring- Metadata key.
$meta_valuemixed- 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.