apply_filters( "get_{$meta_type}_metadata", null|array|string $value , int $object_id , string $meta_key , bool $single )
Filters whether to retrieve metadata of a specific type.
Description
The dynamic portion of the hook, $meta_type
, refers to the meta object type (comment, post, term, or user). Returning a non-null value will effectively short-circuit the function.
Parameters
- $value
-
The value get_metadata() should return
- a single metadata value, or an array of values.
- $object_id
-
Object ID.
- $meta_key
-
Meta key.
- $single
-
Whether to return only the first value of the specified $meta_key.
Source
File: wp-includes/meta.php
Changelog
Version | Description |
---|---|
WP-3.1.0 | Introduced. |