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

Fires immediately before updating a post’s metadata.


$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.

Top ↑


File: wp-includes/meta.php. View all references

do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value );

Top ↑


Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes

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