Uma área de pesquisa sobre o WordPress para devs e autores do tema



add_{$meta_type}_meta ›

Desde3.1.0
Obsoleton/a
do_action( "add_{$meta_type}_meta", $object_id, $meta_key, $_meta_value )
Parâmetros: (3)
  • (int) $object_id Object ID.
    Required: Yes
  • (string) $meta_key Meta key.
    Required: Yes
  • (mixed) $_meta_value Meta value.
    Required: Yes
Definido em:
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).





Fonte

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