Uses
Uses | Description |
---|---|
wp-includes/general-template.php: get_bloginfo() | Retrieves information about the current site. |
Display the HTML type based on the blog setting.
The two possible values are either ‘xhtml’ or ‘html’.
File: wp-includes/feed.php
function html_type_rss() { $type = get_bloginfo( 'html_type' ); if ( strpos( $type, 'xhtml' ) !== false ) { $type = 'xhtml'; } else { $type = 'html'; } echo $type; }
Version | Description |
---|---|
2.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/html_type_rss