Un motore di ricerca WordPress per sviluppatori e autori di temi



get_the_tag_list ›

Da2.3.0
Deprecaton/a
get_the_tag_list ( $before = '', $sep = '', $after = '', $id = 0 )
Parametri: (4)
  • (string) $before Optional. Before tags.
    Richiesto: No
    Default: (vuoto)
  • (string) $sep Optional. Between tags.
    Richiesto: No
    Default: (vuoto)
  • (string) $after Optional. After tags.
    Richiesto: No
    Default: (vuoto)
  • (int) $id Optional. Post ID. Defaults to the current post.
    Richiesto: No
    Default:
Ritorna:
  • (string|false|WP_Error) A list of tags on success, false if there are no terms, WP_Error on failure.
Definito a:
Codex:

Retrieve the tags for a post formatted as a string.



Sorgenti

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

	/**
	 * Filters 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 );
}