comment_text_rss хук-фильтрWP 1.5.0

Filters the current comment content for use in a feed.

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

add_filter( 'comment_text_rss', 'wp_kama_comment_text_rss_filter' );

/**
 * Function for `comment_text_rss` filter-hook.
 * 
 * @param string $comment_text The content of the current comment.
 *
 * @return string
 */
function wp_kama_comment_text_rss_filter( $comment_text ){

	// filter...
	return $comment_text;
}
$comment_text(строка)
The content of the current comment.

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

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

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

comment_text_rss()
comment_text_rss
wp-includes/feed.php 363
$comment_text = apply_filters( 'comment_text_rss', $comment_text );

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

wp-includes/default-filters.php 247
add_filter( 'comment_text_rss', 'ent2ncr', 8 );
wp-includes/default-filters.php 248
add_filter( 'comment_text_rss', 'esc_html' );
wp-includes/default-filters.php 249
add_filter( 'comment_text_rss', 'wp_staticize_emoji' );