A WordPress-centric search engine for devs and theme authors



update_{$meta_type}_meta ›

Since2.9.0
Deprecatedn/a
do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value )
Parameters: (4)
  • (int) $meta_id ID of the 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 metadata of a specific type.

The dynamic portion of the hook, $meta_type, refers to the meta object type (comment, post, or user).





Source

do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value );