updated_postmeta action-hook . WP 2.9.0
Fires immediately after updating a post's metadata.
Usage
add_action( 'updated_postmeta', 'action_function_name_7556', 10, 4 ); function action_function_name_7556( $meta_id, $object_id, $meta_key, $meta_value ){ // action... }
- $meta_id(int)
- ID of updated metadata entry.
- $object_id(int)
- Post ID.
- $meta_key(string)
- Metadata key.
- $meta_value(mixed)
- Metadata 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.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
updated_postmeta
updated_postmeta
wp-includes/meta.php 306
do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
wp-includes/meta.php 874
do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value );