Switch language
wpseek on Twitter


A WordPress-centric search engine for devs and theme authors




get_the_tag_list ›

get_the_tag_list ( $before = '', $sep = '', $after = '', $id = 0 )
Parameters: (4)
  • (string) $before Optional. Before tags.
    Required: No
    Default: (empty)
  • (string) $sep Optional. Between tags.
    Required: No
    Default: (empty)
  • (string) $after Optional. After tags.
    Required: No
    Default: (empty)
  • (int) $id Optional. Post ID. Defaults to the current post.
    Required: No
    Default: 0
Returns:
  • (string|bool|WP_Error) A list of tags on success, false or WP_Error on failure.
Defined at:
Codex:



Retrieve the tags for a post formatted as a string.

Source

function get_the_tag_list( $before = '', $sep = '', $after = '', $id = 0 ) {

	/**
	 * Filter the tags list for a given post.
	 *
	 * @since 2.3.0
	 *
	 * @param string $tag_list List of tags.
	 * @param string $before   String to use before tags.
	 * @param string $sep      String to use between the tags.
	 * @param string $after    String to use after tags.
	 * @param int    $id       Post ID.
	 */
	return apply_filters( 'the_tags', get_the_term_list( $id, 'post_tag', $before, $sep, $after ), $before, $sep, $after, $id );
}

Top Google Search Results

More ...

User Note(s)