Codex tools: Log in
Contents |
A filter hook called by the get_category_feed_link function prior to printing out in a template.
<?php function filter_handler( $data ){ ...... }
add_filter( 'category_feed_link' , 'filter_handler' ); ?>
<?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' );
?>
category_feed_link is located in wp-includes/link-template.php.