Created
August 19, 2024 04:48
-
-
Save maddisondesigns/44f21170de9f8dc59d7bec69b6a81498 to your computer and use it in GitHub Desktop.
Remove WordPress PHP Dashboard Widget
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
/** | |
* Remove PHP Dashboard Widget | |
*/ | |
function remove_site_wp_dashboard_widgets() { | |
remove_meta_box( 'dashboard_php_nag', 'dashboard', 'normal' ); | |
} | |
add_action( 'wp_dashboard_setup', 'remove_site_wp_dashboard_widgets' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment