wpseek.com
A WordPress-centric search engine for devs and theme authors



html_type_rss › WordPress Function

Since2.2.0
Deprecatedn/a
html_type_rss ( No parameters )
Defined at:
Codex:

Displays the HTML type based on the blog setting.

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


Source

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