Remove WordPress Events and News From Admin Dashboard: A Step Guide – WordPress Tutorial

By | June 1, 2020

When you have logged into wordpress admin dashboard, you will see WordPress Events and News like this:

wordpress events and news widget

Of course, you can hide it by screen options.

wordpress events and news in screen options

In this tutorial, we will introduce how to remove this widget from our admin dashboard panel.

How to remove it?

We can open our theme functions.php and add code below:

add_action('wp_dashboard_setup', 'remove_dashboard_widgets');

function remove_dashboard_widgets () {

remove_meta_box('dashboard_primary', 'dashboard', 'side' ); 
remove_meta_box('dashboard_secondary', 'dashboard', 'side' );
}

Then you will find WordPress Events and News has been removed.

Leave a Reply

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