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

meta_array_value_single


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

$meta

(array) (Required)

$key

(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-invp.php

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