taxonomy_feed_link
Filter HookDescription
Filters the feed link for a taxonomy other than 'category' or 'post_tag'.Hook Information
File Location |
wp-includes/link-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1004 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$link
|
The taxonomy feed link. |
string
|
$feed
|
Feed type. Possible values include 'rss2', 'atom'. |
string
|
$taxonomy
|
The taxonomy name. |
Usage Examples
Basic Usage
<?php
// Hook into taxonomy_feed_link
add_filter('taxonomy_feed_link', 'my_custom_filter', 10, 3);
function my_custom_filter($link, $feed, $taxonomy) {
// Your custom filtering logic here
return $link;
}
Source Code Context
wp-includes/link-template.php:1004
- How this hook is used in WordPress core
<?php
999 *
1000 * @param string $link The taxonomy feed link.
1001 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
1002 * @param string $taxonomy The taxonomy name.
1003 */
1004 $link = apply_filters( 'taxonomy_feed_link', $link, $feed, $taxonomy );
1005 }
1006
1007 return $link;
1008 }
1009
PHP Documentation
<?php
/**
* Filters the feed link for a taxonomy other than 'category' or 'post_tag'.
*
* @since 3.0.0
*
* @param string $link The taxonomy feed link.
* @param string $feed Feed type. Possible values include 'rss2', 'atom'.
* @param string $taxonomy The taxonomy name.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-includes/link-template.php
Related Hooks
Related hooks will be displayed here in future updates.