the_category_rss хук-фильтрWP 1.2.0

Filters all of the post categories for display in a feed.

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

add_filter( 'the_category_rss', 'wp_kama_the_category_rss_filter', 10, 2 );

/**
 * Function for `the_category_rss` filter-hook.
 * 
 * @param string $the_list All of the RSS post categories.
 * @param string $type     Type of feed. Possible values include 'rss2', 'atom'.
 *
 * @return string
 */
function wp_kama_the_category_rss_filter( $the_list, $type ){

	// filter...
	return $the_list;
}
$the_list(строка)
All of the RSS post categories.
$type(строка)
Type of feed. Possible values include 'rss2', 'atom'.
По умолчанию: 'rss2'

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

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

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

get_the_category_rss()
the_category_rss
wp-includes/feed.php 426
return apply_filters( 'the_category_rss', $the_list, $type );

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

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