Change wordpress dashboard RSS feed

Development

If you ever feel like you want to change the source of the news items on the wordpress dashboard (Not wordpress.com, sorry if I got your hopes up there) here is how to do it.

You can either add the code that follows to your themes functions.php or you can add the it to a plug-in. Just change the returns from the function to match your feed URIs and titles. There are two feeds the primary, which by default is the “Development Blog”, is limited to about 3 entries and the Secondary feed is much more open.

If you’d like to delete the feeds the just set the return to “”, doing this helps dashboard load time a lot.

/*
Plugin Name: Dashboard RSS replacement.
Plugin URI: http://www.completelypointless.co.uk/
Description: Changes the dashboard RSS to something more interesting.
Author: James R Whitehead
Version: 1.0
*/
function change_dashboard_primary_title () {
  return "Completely Pointless";
}
function change_dashboard_primary_feed() {
  return "http://completelypointless.co.uk/feed/";
}
function change_dashboard_secondary_title () {
  return "BBC News";
}
function change_dashboard_secondary_feed() {
  return "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml";
}
add_filter("dashboard_primary_feed","change_dashboard_primary_feed");
add_filter("dashboard_primary_title","change_dashboard_primary_title");
add_filter("dashboard_secondary_feed","change_dashboard_secondary_feed");
add_filter("dashboard_secondary_title","change_dashboard_secondary_title");

That’s it, nothing too onerous or perplexing. I will say however that if you’re distributing themes or plug-ins that it would be nice to let wordpress keep their feed in there.

James R Whitehead

James R Whitehead

James is a hard-working hardcore developer who is more than happy to reinvent the wheel, except this time it’ll have spokey dokeys and reflectors built in! He also doesn’t like social media or having his picture taken but we got him in the end. Much of the core tech behind interconnect/it has either been developed by James, or he had a hand in making it robust and reliable.

Leave a Reply

Your email address will not be published. Required fields are marked *