/ Published in: PHP
For those of use who use Wordpress as a CMS, this gives you the option of hiding all your dashboard widgets, for all users.
**Open your theme’s functions.php file located in your theme’s folder. Copy this script, paste it at the bottom of your theme’s function.php file and save it. Go to the dashboard page and everything is gone.
**Open your theme’s functions.php file located in your theme’s folder. Copy this script, paste it at the bottom of your theme’s function.php file and save it. Go to the dashboard page and everything is gone.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function remove_dashboard_widgets() { global $wp_meta_boxes; // For right now information widget // For recent comments listing widget // For quick press widget // For recent drafts widget // For Plugin information widget // For incoming links information widget // For WordPress blog news widget // For other WordPress news widget } add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );
URL: rainydaymedia.net