get_bloginfo_rss()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
get_bloginfo_rss( string $show = '' ): string
Описание
Можно получить всё то же, что и с помощью функции get_bloginfo().
При извлечении значений для использования в лентах из всего удаляются теги и преобразуются символы.
См. alsoget_bloginfo(): список возможных значений для отображения.
Оригинал (английский)
You can retrieve anything that you can using the get_bloginfo() function.
Everything will be stripped of tags and characters converted, when the values are retrieved for use in the feeds.
- get_bloginfo(): For the list of possible values to display.
Параметры
$show
string
необязательный
= ''
Возвращаемое значение
string
Исходный код
wp-includes/feed.php:27
function get_bloginfo_rss( $show = '' ) {
$info = strip_tags( get_bloginfo( $show ) );
/**
* Filters the bloginfo for use in RSS feeds.
*
* @since 2.2.0
*
* @see convert_chars()
* @see get_bloginfo()
*
* @param string $info Converted string value of the blog information.
* @param string $show The type of blog information to retrieve.
*/
return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );
}
История изменений
| Версия | Описание |
|---|---|
| 1.5.1 | Introduced. |

