tag_feed_link
Filter HookDescription
Filters the post tag feed link.Hook Information
File Location |
wp-includes/link-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 993 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$link
|
The tag feed link. |
string
|
$feed
|
Feed type. Possible values include 'rss2', 'atom'. |
Usage Examples
Basic Usage
<?php
// Hook into tag_feed_link
add_filter('tag_feed_link', 'my_custom_filter', 10, 2);
function my_custom_filter($link, $feed) {
// Your custom filtering logic here
return $link;
}
Source Code Context
wp-includes/link-template.php:993
- How this hook is used in WordPress core
<?php
988 * @since 2.3.0
989 *
990 * @param string $link The tag feed link.
991 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
992 */
993 $link = apply_filters( 'tag_feed_link', $link, $feed );
994 } else {
995 /**
996 * Filters the feed link for a taxonomy other than 'category' or 'post_tag'.
997 *
998 * @since 3.0.0
PHP Documentation
<?php
/**
* Filters the post tag feed link.
*
* @since 2.3.0
*
* @param string $link The tag feed link.
* @param string $feed Feed type. Possible values include 'rss2', 'atom'.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/link-template.php
Related Hooks
Related hooks will be displayed here in future updates.