get_wp_title_rss
Filter HookDescription
Filters the blog title for use as the feed title.Hook Information
File Location |
wp-includes/feed.php
View on GitHub
|
Hook Type | Filter |
Line Number | 118 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$title
|
The current blog title. |
string
|
$deprecated
|
Unused. |
Usage Examples
Basic Usage
<?php
// Hook into get_wp_title_rss
add_filter('get_wp_title_rss', 'my_custom_filter', 10, 2);
function my_custom_filter($title, $deprecated) {
// Your custom filtering logic here
return $title;
}
Source Code Context
wp-includes/feed.php:118
- How this hook is used in WordPress core
<?php
113 * @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`.
114 *
115 * @param string $title The current blog title.
116 * @param string $deprecated Unused.
117 */
118 return apply_filters( 'get_wp_title_rss', wp_get_document_title(), $deprecated );
119 }
120
121 /**
122 * Displays the blog title for display of the feed title.
123 *
PHP Documentation
<?php
/**
* Filters the blog title for use as the feed title.
*
* @since 2.2.0
* @since 4.4.0 The `$sep` parameter was deprecated and renamed to `$deprecated`.
*
* @param string $title The current blog title.
* @param string $deprecated Unused.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/feed.php
Related Hooks
Related hooks will be displayed here in future updates.