Title: sanitize_{$meta_type}_meta_{$meta_key}
Published: April 25, 2014
Last modified: April 12, 2016

---

# apply_filters( “sanitize_{$meta_type}_meta_{$meta_key}”, mixed $meta_value, string $meta_key, string $meta_type )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/sanitize_meta_type_meta_meta_key/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/sanitize_meta_type_meta_meta_key/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/sanitize_meta_type_meta_meta_key/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/sanitize_meta_type_meta_meta_key/?output_format=md#changelog)

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

Filter the sanitization of a specific meta key of a specific meta type.

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

The dynamic portions of the hook name, `$meta_type`, and `$meta_key`, refer to the
metadata object type (comment, post, or user) and the meta key value, respectively.

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

 `$meta_value`mixed

Meta value to sanitize.

`$meta_key`string

Meta key.

`$meta_type`string

Meta type.

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

    ```php
    'meta_key'   => $meta_key,
    ```

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

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

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

## User Contributed Notes

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