post_comments_feed_link
Filter HookDescription
Filters the post comments feed permalink.Hook Information
File Location |
wp-includes/link-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 820 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$url
|
Post comments feed permalink. |
Usage Examples
Basic Usage
<?php
// Hook into post_comments_feed_link
add_filter('post_comments_feed_link', 'my_custom_filter', 10, 1);
function my_custom_filter($url) {
// Your custom filtering logic here
return $url;
}
Source Code Context
wp-includes/link-template.php:820
- How this hook is used in WordPress core
<?php
815 *
816 * @since 1.5.1
817 *
818 * @param string $url Post comments feed permalink.
819 */
820 return apply_filters( 'post_comments_feed_link', $url );
821 }
822
823 /**
824 * Displays the comment feed link for a post.
825 *
PHP Documentation
<?php
/**
* Filters the post comments feed permalink.
*
* @since 1.5.1
*
* @param string $url Post comments feed permalink.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/link-template.php
Related Hooks
Related hooks will be displayed here in future updates.