get_bloginfo_rss хук-фильтрWP 2.2.0

Filters the bloginfo for use in RSS feeds.

Использование

add_filter( 'get_bloginfo_rss', 'wp_kama_get_bloginfo_rss_filter', 10, 2 );

/**
 * Function for `get_bloginfo_rss` filter-hook.
 * 
 * @param string $info Converted string value of the blog information.
 * @param string $show The type of blog information to retrieve.
 *
 * @return string
 */
function wp_kama_get_bloginfo_rss_filter( $info, $show ){

	// filter...
	return $info;
}
$info(строка)
Converted string value of the blog information.
$show(строка)
The type of blog information to retrieve.

Список изменений

С версии 2.2.0 Введена.

Где вызывается хук

get_bloginfo_rss()
get_bloginfo_rss
wp-includes/feed.php 40
return apply_filters( 'get_bloginfo_rss', convert_chars( $info ), $show );

Где используется хук в WordPress

Использование не найдено.