Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Inventory_Presser_Taxonomies::meta_array_value_single( array $meta, string $key )


Description Description

Given a $meta array collection of a post's entire meta data, retrieves the single or first value stored in $key.

Top ↑

Parameters Parameters


(array) (Required)


(string) (Required) A meta key

Top ↑

Return Return

(string|bool) A single meta value or false if the value does not exist

Top ↑

Source Source

File: includes/class-taxonomies.php

	private static function meta_array_value_single( $meta, $key )
		return isset( $meta[$key][0] ) ? $meta[$key][0] : false;