Last active
November 16, 2023 00:43
-
-
Save amboutwe/5c69b1245e9478a1d7b4c0b49fe24a25 to your computer and use it in GitHub Desktop.
Remove Yoast SEO 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
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Remove Yoast SEO Dashboard Widget | |
* Credit: Unknown | |
* Last Tested: Sep 15 2022 using Yoast SEO 19.6.1 on WordPress 6.0.2 | |
*/ | |
add_action('wp_dashboard_setup', 'remove_wpseo_dashboard_overview' ); | |
function remove_wpseo_dashboard_overview() { | |
// In some cases, you may need to replace 'side' with 'normal' or 'advanced'. | |
remove_meta_box( 'wpseo-dashboard-overview', 'dashboard', 'side' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! 😀