WordPress.org

Codex

Plugin API/Filter Reference/category feed link

Contents

Description

A filter hook called by the get_category_feed_link function prior to printing out in a template.

Usage

<?php function filter_handler$data ){ ...... }

add_filter'category_feed_link' 'filter_handler' ); ?>

Parameters

$data
(array) (required) Category feed data.
Default: None

Return Values

(array) 
$data.

Examples

<?php
function filter_handler$data )
{
  
// do something with the feed data
  
return $data;
}

add_filter'category_feed_link' 'filter_handler' );
?>

To remove the default RSS feeds that wp_head() prints out, you can do this: <?php
function remove_feeds()
{
  
// return no data
  
return;
}

add_filter'category_feed_link' 'remove_feeds' );
?>

Source File

category_feed_link is located in wp-includes/link-template.php.

Related

get_category_feed_link

See Also

Plugin_API/Filter_Reference