get_the_tag_list
get_the_tag_list ( $before = '', $sep = '', $after = '', $post_id = 0 )
Parameters:- (string) before Optional. String to use before the tags. Default empty.
- (string) sep Optional. String to use between the tags. Default empty.
- (string) after Optional. String to use after the tags. Default empty.
- (int) post_id Optional. Post ID. Defaults to the current post ID.
Returns:- (string|false|WP_Error) A list of tags on success, false if there are no terms, WP_Error on failure.
Defined at: - Introduced in WordPress: 2.3.0
- Deprecated in WordPress: —
Description
Retrieves the tags for a post formatted as a string.