post_comments_feed_link_html
Filter HookDescription
Filters the post comment feed link anchor tag.Hook Information
| File Location | wp-includes/link-template.phpView on GitHub | 
| Hook Type | Filter | 
| Line Number | 854 | 
Hook Parameters
| Type | Name | Description | 
|---|---|---|
| string | $link | The complete anchor tag for the comment feed link. | 
| int | $post_id | Post ID. | 
| string | $feed | The feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type. | 
Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into post_comments_feed_link_html
add_filter('post_comments_feed_link_html', 'my_custom_filter', 10, 3);
function my_custom_filter($link, $post_id, $feed) {
    // Your custom filtering logic here
    return $link;
}
Source Code Context
                        wp-includes/link-template.php:854
                        - How this hook is used in WordPress core
                    
                    <?php
 849  	 * @param string $link    The complete anchor tag for the comment feed link.
 850  	 * @param int    $post_id Post ID.
 851  	 * @param string $feed    The feed type. Possible values include 'rss2', 'atom',
 852  	 *                        or an empty string for the default feed type.
 853  	 */
 854  	echo apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed );
 855  }
 856  
 857  /**
 858   * Retrieves the feed link for a given author.
 859   *
PHP Documentation
<?php
/**
	 * Filters the post comment feed link anchor tag.
	 *
	 * @since 2.8.0
	 *
	 * @param string $link    The complete anchor tag for the comment feed link.
	 * @param int    $post_id Post ID.
	 * @param string $feed    The feed type. Possible values include 'rss2', 'atom',
	 *                        or an empty string for the default feed type.
	 */
                        Quick Info
                    
                    - Hook Type: Filter
- Parameters: 3
- File: wp-includes/link-template.php
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.
