Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.

get_{$meta_type}_metadata ›

apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single )
Parametry: (4)
  • (null|array|string) $value The value get_metadata() should return - a single metadata value, or an array of values.
    Wymagane: Tak
  • (int) $object_id Object ID.
    Wymagane: Tak
  • (string) $meta_key Meta key.
    Wymagane: Tak
  • (bool) $single Whether to return only the first value of the specified $meta_key.
    Wymagane: Tak
Zdefiniowane na:

Filters whether to retrieve metadata of a specific type.

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.


$check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single );