Video_Post::get_meta( $key, bool $single = true, array $default = array() )
Parameters
- $key
-
(Required)
- $single
-
(Optional)
Default value: true
- $default
-
(Optional) - a default value that should be returned in case the meta isn't found
Default value: array()
Return
(mixed)
Source
File: includes/libs/video-post.class.php
public function get_meta( $key, $single = true, $default = [] ){
if( $this->_post ){
$meta = get_post_meta(
$this->_post->ID,
$key,
$single
);
return $meta === Helper::get_metadata_default( 'post', $this->_post->ID, $key, $single ) ? $default : $meta;
}
return $default;
}
