Definition:
function wp_get_post_tags( $post_id = 0, $args = array() {}
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 wp_get_object_terms().
Parameters
- int $post_id: Optional. The Post ID
- array $args: Optional. Overwrite the defaults
Return values
returns:List of post tags.
Source code
function wp_get_post_tags( $post_id = 0, $args = array() ) { return wp_get_post_terms( $post_id, 'post_tag', $args); }
3737
No comments yet... Be the first to leave a reply!