W3cubDocs

/WordPress

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

(null|array|string) The value get_metadata() should return - a single metadata value, or an array of values.

$object_id

(int) Object ID.

$meta_key

(string) Meta key.

$single

(bool) Whether to return only the first value of the specified $meta_key.

Source

File: wp-includes/meta.php

View on Trac

Changelog

Version Description
3.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_meta_type_metadata