mirror of
https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2025-08-17 18:11:08 +08:00
jetpack: Remove Newsletter dashboard widget
This commit is contained in:
parent
b0c99c78fb
commit
957933114e
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue