Skip to content

Instantly share code, notes, and snippets.

@enejb
Created February 5, 2013 00:03
Show Gist options
  • Save enejb/4710941 to your computer and use it in GitHub Desktop.
Save enejb/4710941 to your computer and use it in GitHub Desktop.
A small plugin to remove the WordPress rss feed that are there by default in on the WordPress Admin Dashboard
<?php
/*
Plugin Name: Remove RSS Dashboard Widgets
Plugin URI: http://ctlt.ubc.ca/
Description: Override the default admin menu
Author: Enej Bajgoric
Version: 1.0
Author URI: http://ctlt.ubc.ca/
*/
/**
* ctlt_remove_dashboard_widgets function.
*
* @access public
* @return void
*/
function ctlt_remove_dashboard_widgets() {
remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );
remove_meta_box( 'dashboard_primary', 'dashboard', 'normal' );
remove_meta_box( 'dashboard_secondary', 'dashboard', 'normal' );
}
// Hoook into the 'wp_dashboard_setup' action to register our function
add_action('wp_dashboard_setup', 'ctlt_remove_dashboard_widgets' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment