jetpack: Remove Newsletter dashboard widget

This commit is contained in:
Viktor Szépe 2025-04-15 08:07:53 +02:00 committed by GitHub
parent b0c99c78fb
commit 957933114e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,3 +58,13 @@ add_filter('jetpack_blaze_enabled', '__return_false', 10, 0);
add_filter('jetpack_just_in_time_msgs', '__return_false', 20, 0);
add_filter('jetpack_show_promotions', '__return_false', 20, 0);
*/
// Remove Newsletter dashboard widget
add_action(
'wp_dashboard_setup',
static function () {
remove_meta_box('jetpack_newsletter_dashboard_widget', 'dashboard', 'side');
},
20,
0
);