Filter hook 'comment_text_rss'

in WP Core File wp-includes/feed.php at line 365

View Source

comment_text_rss

Filter Hook
Description
Filters the current comment content for use in a feed.

Hook Information

File Location wp-includes/feed.php View on GitHub
Hook Type Filter
Line Number 365

Hook Parameters

Type Name Description
string $comment_text The content of the current comment.

Usage Examples

Basic Usage
<?php
// Hook into comment_text_rss
add_filter('comment_text_rss', 'my_custom_filter', 10, 1);

function my_custom_filter($comment_text) {
    // Your custom filtering logic here
    return $comment_text;
}

Source Code Context

wp-includes/feed.php:365 - How this hook is used in WordPress core
<?php
 360  	 *
 361  	 * @since 1.5.0
 362  	 *
 363  	 * @param string $comment_text The content of the current comment.
 364  	 */
 365  	$comment_text = apply_filters( 'comment_text_rss', $comment_text );
 366  	echo $comment_text;
 367  }
 368  
 369  /**
 370   * Retrieves all of the post categories, formatted for use in feeds.

PHP Documentation

<?php
/**
	 * Filters the current comment content for use in a feed.
	 *
	 * @since 1.5.0
	 *
	 * @param string $comment_text The content of the current comment.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/feed.php
Related Hooks

Related hooks will be displayed here in future updates.