do_action( ‘update_postmeta’, int $meta_id, int $object_id, string $meta_key, mixed $meta_value )

In this article

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

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.