comment_text_rss

Filters the current comment content for use in a feed.

Description

add_filter( 'comment_text_rss', (string) $ent2ncr, (int) $int ); 

Parameters (2)

0. $ent2ncr (string) => 'ent2ncr'
The ent2ncr.
1. $int (int) => 8
The int.

Usage

To run the hook, copy the example below.
  1. $ent2ncr = apply_filters( 'comment_text_rss', $ent2ncr, $int ); 
  2.  
  3. if ( !empty( $ent2ncr ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the comment_text_rss callback 
  2. function filter_comment_text_rss( $ent2ncr, $int ) { 
  3. // make filter magic happen here... 
  4. return $ent2ncr
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'comment_text_rss', 'filter_comment_text_rss', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'comment_text_rss', 'filter_comment_text_rss', 10, 2 ); 

Defined (3)

The filter is defined in the following location(s).

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