Switch language
wpseek on Twitter


A WordPress-centric search engine for devs and theme authors




wp_add_post_tags ›

wp_add_post_tags ( $post_id = 0, $tags = '' )
Parameters: (2)
  • (int) $post_id Post ID
    Required: No
    Default: 0
  • (string) $tags The tags to set for the post, separated by commas.
    Required: No
    Default: (empty)
Uses:
Returns:
  • (bool|null) Will return false if $post_id is not an integer or is 0. Will return null otherwise
Defined at:
Codex:



Adds tags to a post.

Source

function wp_add_post_tags($post_id = 0, $tags = '') {
	return wp_set_post_tags($post_id, $tags, true);
}

Top Google Search Results

User Note(s)