wp_set_post_terms Wordpress function


Description:

Set the terms for a post.


Syntax:


Arguments:

(int) $post_id Post ID.
(string) $tags The tags to set for the post, separated by commas.
(string) $taxonomy Taxonomy name. Defaults to 'post_tag'.
(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_terms


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