add_metadata Wordpress function


Add metadata for the specified object.



(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 Metadata key
(string) $meta_value Metadata value
(bool) $unique Optional, default is false. Whether the specified metadata key should be unique for the object. If true, and the object already has a value for the specified metadata key, no change will be made

Return Type:

(bool) The meta ID on successful update, false on failure.

Define At:


Wordpress Reference URL:

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