A WordPress-centric search engine for devs and theme authors



add_{$meta_type}_meta ›

Since3.1.0
Deprecatedn/a
do_action( "add_{$meta_type}_meta", $object_id, $meta_key, $_meta_value )
Parameters: (3)
  • (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 meta of a specific type is added.

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





Source

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