the_tags

Advertisement

Summery Summery

Retrieve the tags for a post.

Syntax Syntax

the_tags( string $before = null, string $sep = ', ', string $after = '' )

Parameters Parameters

$before

(string) (Optional) Before list.

Default value: null

$sep

(string) (Optional) Separate items using this.

Default value: ', '

$after

(string) (Optional) After list.

Default value: ''

Source Source

File: wp-includes/category-template.php

	return apply_filters( 'get_the_tags', $terms );
}

/**
 * Retrieves the tags for a post formatted as a string.
 *
 * @since 2.3.0
 *
 * @param string $before  Optional. String to use before the tags. Default empty.
 * @param string $sep     Optional. String to use between the tags. Default empty.
 * @param string $after   Optional. String to use after the tags. Default empty.

Advertisement

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.