функция
since 2.2.0
html_type_rss()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
html_type_rss()
Описание
Возможны два значения — 'xhtml' или 'html'.
Оригинал (английский)
The two possible values are either ‘xhtml’ or ‘html’.
Исходный код
wp-includes/feed.php:451
function html_type_rss() {
$type = get_bloginfo( 'html_type' );
if ( str_contains( $type, 'xhtml' ) ) {
$type = 'xhtml';
} else {
$type = 'html';
}
echo $type;
}
История изменений
| Версия | Описание |
|---|---|
| 2.2.0 | Introduced. |

