Definition:
function wp_add_post_tags($post_id = 0, $tags = '') {}
Adds tags to a post.
Parameters
- int $post_id: Post ID
- string $tags: The tags to set for the post, separated by commas.
Return values
returns:Will return false if $post_id is not an integer or is 0. Will return null otherwise
Source code
function wp_add_post_tags($post_id = 0, $tags = '') { return wp_set_post_tags($post_id, $tags, true); }
3415
No comments yet... Be the first to leave a reply!