comment_author_rss
Filter HookDescription
Filters the current comment author for use in a feed.Hook Information
File Location |
wp-includes/feed.php
View on GitHub
|
Hook Type | Filter |
Line Number | 339 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$comment_author
|
The current comment author. |
Usage Examples
Basic Usage
<?php
// Hook into comment_author_rss
add_filter('comment_author_rss', 'my_custom_filter', 10, 1);
function my_custom_filter($comment_author) {
// Your custom filtering logic here
return $comment_author;
}
Source Code Context
wp-includes/feed.php:339
- How this hook is used in WordPress core
<?php
334 *
335 * @see get_comment_author()
336 *
337 * @param string $comment_author The current comment author.
338 */
339 return apply_filters( 'comment_author_rss', get_comment_author() );
340 }
341
342 /**
343 * Displays the current comment author in the feed.
344 *
PHP Documentation
<?php
/**
* Filters the current comment author for use in a feed.
*
* @since 1.5.0
*
* @see get_comment_author()
*
* @param string $comment_author The current comment author.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/feed.php
Related Hooks
Related hooks will be displayed here in future updates.