A WordPress-centric search engine for devs and theme authors



update_postmeta ›

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 Object ID.
    Required: Yes
  • (string) $meta_key Meta key.
    Required: Yes
  • (mixed) $meta_value Meta value.
    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 );