wp_add_post_meta Wordpress function


Description:

Add meta data field to a post.


Syntax:


Arguments:

(int) $post_id Post ID.
(string) $meta_key Metadata name (clean, slashes already stripped).
(mixed) $meta_value Metadata value (clean, slashes already stripped).
(bool) $unique Optional, default is false. Whether the same key should not be added.


Return Type:

(bool) False for failure. True for success.


Define At:

wp-includes/post.php


Wordpress Reference URL:

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


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