Title: added_{$meta_type}_meta
Published: April 25, 2014
Last modified: February 24, 2026

---

# do_action( “added_{$meta_type}_meta”, int $mid, int $object_id, string $meta_key, mixed $_meta_value )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#wp--skip-link--target)

Fires immediately after meta of a specific type is added.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$meta_type`, refers to the meta object type(
blog, post, comment, term, user, or any other type with an associated meta table).

Possible hook names include:

 * `added_blog_meta`
 * `added_post_meta`
 * `added_comment_meta`
 * `added_term_meta`
 * `added_user_meta`

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#parameters)󠁿

 `$mid`int

The meta ID after successful update.

`$object_id`int

ID of the object metadata is for.

`$meta_key`string

Metadata key.

`$_meta_value`mixed

Metadata value.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#more-information)󠁿

This hook is called at the end of [add_metadata()](https://developer.wordpress.org/reference/functions/add_metadata/)
function.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#source)󠁿

    ```php
    do_action( "added_{$meta_type}_meta", $mid, $object_id, $meta_key, $_meta_value );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/meta.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/meta.php#L168)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/meta.php#L168-L168)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#related)󠁿

| Used by | Description | 
| [add_metadata()](https://developer.wordpress.org/reference/functions/add_metadata/)`wp-includes/meta.php` |

Adds metadata for the specified object.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/added_meta_type_meta/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.9.0](https://developer.wordpress.org/reference/since/2.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fadded_meta_type_meta%2F)
before being able to contribute a note or feedback.