WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code | 
|---|---|
| 950 |       * refer to the metadata object type (comment, post, or user) and the meta | 
| 951 |       * key value, respectively. | 
| 952 |       * | 
| 953 |       * @since 3.3.0 | 
| 954 |       * | 
| 955 |       * @param mixed  $meta_value      Meta value to sanitize. | 
| 956 |       * @param string $meta_key        Meta key. | 
| 957 |       * @param string $object_type     Object type. | 
| 958 |       */ | 
| 959 |      return apply_filters( "sanitize_{$object_type}_meta_{$meta_key}", $meta_value, $meta_key, $object_type ); | 
| 960 | } | 
| 961 |  | 
| 962 | /** | 
| 963 |  * Registers a meta key. | 
| 964 |  * | 
| 965 |  * @since 3.3.0 | 
| 966 |  * @since 4.6.0 {@link https://core.trac.wordpress.org/ticket/35658 Modified | 
| 967 |  *              to support an array of data to attach to registered meta keys}. Previous arguments for | 
| 968 |  *              `$sanitize_callback` and `$auth_callback` have been folded into this array. |