get_metadata Wordpress function


Description:

Retrieve metadata for the specified object.


Syntax:


Arguments:

(string) $meta_type Type of object metadata is for (e.g., comment, post, or user)
(int) $object_id ID of the object metadata is for
(string) $meta_key Optional. Metadata key. If not specified, retrieve all metadata for the specified object.
(bool) $single Optional, default is false. If true, return only the first value of the specified meta_key. This parameter has no effect if meta_key is not specified.


Return Type:

(string|array) Single metadata value, or array of values


Define At:

wp-includes/meta.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_metadata


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×