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.
On This Page
Parameters Parameters
- $meta
-
(array) (Required)
- $key
-
(string) (Required) A meta key.
Return Return
(string|bool) A single meta value or false if the value does not exist
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; }
Expand full source codeCollapse full source codeView on Github