Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_add_post_tags [ WordPress Function ]

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



Adds tags to a post.

Source


<?php
function wp_add_post_tags($post_id 0$tags '') {
    return 
wp_set_post_tags($post_id$tagstrue);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics