the_title_rss
Filter HookHook Information
File Location |
wp-includes/feed-rss2-comments.php
View on GitHub
|
Hook Type | Filter |
Line Number | 87 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into the_title_rss
add_filter('the_title_rss', 'my_custom_filter');
function my_custom_filter() {
// Your custom filtering logic here
return 'modified_value';
}
Source Code Context
wp-includes/feed-rss2-comments.php:87
- How this hook is used in WordPress core
<?php
82 <title>
83 <?php
84 if ( ! is_singular() ) {
85 $title = get_the_title( $comment_post->ID );
86 /** This filter is documented in wp-includes/feed.php */
87 $title = apply_filters( 'the_title_rss', $title );
88 /* translators: Individual comment title. 1: Post title, 2: Comment author name. */
89 printf( ent2ncr( __( 'Comment on %1$s by %2$s' ) ), $title, get_comment_author_rss() );
90 } else {
91 /* translators: Comment author title. %s: Comment author name. */
92 printf( ent2ncr( __( 'By: %s' ) ), get_comment_author_rss() );
PHP Documentation
<?php
/**
* @global WP_Post $post Global post object.
*/
Quick Info
- Hook Type: Filter
- Parameters: 0
- File: wp-includes/feed-rss2-comments.php
Related Hooks
Related hooks will be displayed here in future updates.