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



update_postmeta ›

Desde2.9.0
Obsoleton/a
do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value )
Parâmetros: (4)
  • (int) $meta_id ID of metadata entry to update.
    Required: Yes
  • (int) $object_id Post ID.
    Required: Yes
  • (string) $meta_key Meta key.
    Required: Yes
  • (mixed) $meta_value Meta 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
Definido em:
Codex:

Fires immediately before updating a post's metadata.





Fonte

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