Switch language

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




wp_get_post_tags [ WordPress Function ]

wp_get_post_tags ( $post_id = 0, $args = array() )
Parameters:
  • (int) $post_id Optional. The Post ID
  • (array) $args Optional. Overwrite the defaults
Uses:
Returns:
  • (array) List of post tags.
Defined at:



Retrieve the tags for a post.

There is only one default for this function, called 'fields' and by default is set to 'all'. There are other defaults that can be overridden in {@link wp_get_object_terms()}.

Source


<?php
function wp_get_post_tags$post_id 0$args = array() ) {
    return 
wp_get_post_terms$post_id'post_tag'$args);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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