wp_set_post_tags Wordpress function


Description:

Set the tags for a post.


Syntax:


Arguments:

(int) $post_id Post ID.
(string) $tags The tags to set for the post, separated by commas.
(bool) $append If true, don't delete existing tags, just add on. If false, replace the tags with the new tags.


Return Type:

(mixed) Array of affected term IDs. WP_Error or false on failure.


Define At:

wp-includes/post.php


Wordpress Reference URL:

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


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