Created
February 5, 2013 00:03
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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