Filter hook 'category_feed_link'

in WP Core File wp-includes/link-template.php at line 983

View Source

category_feed_link

Filter Hook
Description
Filters the category feed link.

Hook Information

File Location wp-includes/link-template.php View on GitHub
Hook Type Filter
Line Number 983

Hook Parameters

Type Name Description
string $link The category feed link.
string $feed Feed type. Possible values include 'rss2', 'atom'.

Usage Examples

Basic Usage
<?php
// Hook into category_feed_link
add_filter('category_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:983 - How this hook is used in WordPress core
<?php
 978  		 * @since 1.5.1
 979  		 *
 980  		 * @param string $link The category feed link.
 981  		 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
 982  		 */
 983  		$link = apply_filters( 'category_feed_link', $link, $feed );
 984  	} elseif ( 'post_tag' === $taxonomy ) {
 985  		/**
 986  		 * Filters the post tag feed link.
 987  		 *
 988  		 * @since 2.3.0

PHP Documentation

<?php
/**
		 * Filters the category feed link.
		 *
		 * @since 1.5.1
		 *
		 * @param string $link The category 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.