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



html_type_rss › WordPress Function

Since2.2.0
已弃用n/a
html_type_rss ( 没有参数 )
定义在:
文档:

Displays the HTML type based on the blog setting.

The two possible values are either 'xhtml' or 'html'.


源码

function html_type_rss() {
	$type = get_bloginfo( 'html_type' );
	if ( str_contains( $type, 'xhtml' ) ) {
		$type = 'xhtml';
	} else {
		$type = 'html';
	}
	echo $type;
}