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

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


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;
	}