• Skip to primary navigation
  • Skip to main content
  • Skip to footer

altaneus

Pensées pour moi-même...

  • Home
  • Snippets
  • About

Remove Dashboard Widgets

Publié le 27 January 2019 par Stefano / Dernière modification le 28 January 2019

<?php

// Remove unused Widgets from the Dashboard.
function dottaware_remove_dashboard_widgets() {
  
    // remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );   // At a Glance.
    
    // remove_meta_box( 'dashboard_activity', 'dashboard', 'normal'); // Activity.
  
    remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); // Recent Comments.
    remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );  // Incoming Links.
    
    // remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );   // Plugins.

    remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );  // Quick Press.

    // remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' );  // Recent Drafts.

    remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );   // WordPress Events and News.

    remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' );   // Other WordPress News.    
}
add_action( 'wp_dashboard_setup', 'dottaware_remove_dashboard_widgets', 99 );

// Remove the Welcome Panel from the Dashboard.
remove_action( 'welcome_panel', 'wp_welcome_panel');

// Remove the Try Gutenberg from the Dashboard.
remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );

Footer

Recent Posts

  • Jetpack Stats – il va falloir payer
  • Jetpack Personal : augmentation de prix
  • Générateurs de mots de passes
  • Générateur de GUID/UUID
  • Appareil photo du Samsung S22 Ultra

Categories

  • Apache
  • Cloudflare
  • DNS
  • Genesis
  • Infomaniak
  • Jetpack
  • Non classé
  • Outils
  • Photographie
  • Sécurité
  • Uncategorized
  • Wordpress
  • WP Rocket

Copyright © 2025 · Genesis Framework · WordPress · Log in