wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



html_type_rss › WordPress Function

Od2.2.0
Przestarzałyn/a
html_type_rss ( Brak parametrów )
Zdefiniowane na:
Codex:

Displays the HTML type based on the blog setting.

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


Źródło

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