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 GitHub



Changelog

Changelog
Version Description
WP-3.1.0 Introduced.