Last active
January 18, 2017 12:10
-
-
Save erikasarti/a7bde6357c8a8173f7c1 to your computer and use it in GitHub Desktop.
Como desabilitar os boxes da tela inicial no painel administrativo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Desabilita os boxes do painel administrativo | |
function erikasarti_remove_wordpress_dashboard() { | |
remove_meta_box('dashboard_right_now', 'dashboard', 'normal'); // Agora | |
remove_meta_box('dashboard_activity', 'dashboard', 'normal'); // Atividade | |
remove_meta_box('dashboard_quick_press', 'dashboard', 'side'); // Rascunho rápido | |
remove_meta_box('dashboard_primary', 'dashboard', 'side'); // Novidades do WordPress | |
} | |
add_action('admin_init', 'erikasarti_remove_wordpress_dashboard'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment