meta() public static method

Get meta value
public static meta ( integer $post_id, boolean $saved, array $field ) : mixed
$post_id integer
$saved boolean
$field array
return mixed
Esempio n. 1
0
 /**
  * Standard meta retrieval
  *
  * @param int   $post_id
  * @param array $field
  * @param bool  $saved
  *
  * @return mixed
  */
 static function meta($post_id, $saved, $field)
 {
     $meta = parent::meta($post_id, $saved, $field);
     return empty($meta) ? array() : (array) $meta;
 }
Esempio n. 2
0
 /**
  * Get meta value
  *
  * @param int   $post_id
  * @param bool  $saved
  * @param array $field
  *
  * @return mixed
  */
 static function meta($post_id, $saved, $field)
 {
     $field['multiple'] = true;
     return parent::meta($post_id, $saved, $field);
 }