wpseek.com
A WordPress-centric search engine for devs and theme authors



update_postmeta › WordPress Action Hooks

Since2.9.0
Deprecatedn/a
do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value )
Parameters: (4)
  • (int) $meta_id ID of metadata entry to update.
    Required: Yes
  • (int) $object_id Post ID.
    Required: Yes
  • (string) $meta_key Metadata key.
    Required: Yes
  • (mixed) $meta_value 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.
    Required: Yes
Defined at:
Codex:

Fires immediately before updating a post's metadata.





Source

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