WordPress开发者和主题制作者的搜索引擎



single_tag_title ›

Since2.3.0
已弃用n/a
single_tag_title ( $prefix = '', $display = true )
参数: (2)
  • (string) $prefix Optional. What to display before the title.
    Required: No
    默认: (empty)
  • (bool) $display Optional, default is true. Whether to display or retrieve title.
    Required: No
    默认: true
返回:
  • (string|void) Title when retrieving.
定义在:
文档:

Display or retrieve page title for tag post archive.

Useful for tag template files for displaying the tag page title. The prefix does not automatically place a space between the prefix, so if there should be a space, the parameter value will need to have it at the end.



源码

function single_tag_title( $prefix = '', $display = true ) {
	return single_term_title( $prefix, $display );
}