How to Remove Dashboard Widgets in WordPress

WordPress provides some defaults widget like text, pages, meta, search, categories, tags, rss, menu, calendar, recent posts & recent comments. If you want to remove any default registered widget from dashboard than you can remove it from dashboard.

This code snippets allow you to remove dashboard widgets in WordPress.

Add this code below in function.php file.

<?php
// remove default wordpress widgets
function ws_remove_default_widgets() {
unregister_widget( 'WP_Widget_Pages' );
unregister_widget( 'WP_Widget_Calendar' );
unregister_widget( 'WP_Widget_Archives' );
unregister_widget( 'WP_Widget_Meta' );
unregister_widget( 'WP_Widget_Search' );
unregister_widget( 'WP_Widget_Text' );
unregister_widget( 'WP_Widget_Categories' );
unregister_widget( 'WP_Widget_Recent_Posts' );
unregister_widget( 'WP_Widget_Recent_Comments' );
unregister_widget( 'WP_Widget_RSS' );
unregister_widget( 'WP_Widget_Tag_Cloud' );
unregister_widget( 'WP_Nav_Menu_Widget' );
}
add_action( 'widgets_init', 'ws_remove_default_widgets', 11 );
?>

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face – we are here to solve your problems.

(Visited 9 times, 1 visits today)
Chandra Kumar

Hello World, I am Chandra Kumar from New Delhi, India. I am professionally developer, programmer and blogger. I am the founder of WebShouters.com.

0 Comment

Leave a Comment

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