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 |
---|---|
951 | * refer to the metadata object type (comment, post, or user) and the meta |
952 | * key value, respectively. |
953 | * |
954 | * @since 3.3.0 |
955 | * |
956 | * @param mixed $meta_value Meta value to sanitize. |
957 | * @param string $meta_key Meta key. |
958 | * @param string $object_type Object type. |
959 | */ |
960 | return apply_filters( "sanitize_{$object_type}_meta_{$meta_key}", $meta_value, $meta_key, $object_type ); |
961 | } |
962 |
|
963 | /** |
964 | * Registers a meta key. |
965 | * |
966 | * @since 3.3.0 |
967 | * @since 4.6.0 {@link https://make.wordpress.org/core/2016/07/08/enhancing-register_meta-in-4-6/ Modified |
968 | * to support an array of data to attach to registered meta keys}. Previous arguments for |
969 | * `$sanitize_callback` and `$auth_callback` have been folded into this array. |