Want create site? Find Free WordPress Themes and plugins.

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.

Code Snippet:

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.

Did you find apk for android? You can find new Free Android Games and apps.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Posted by Editorial Staff