-
-
Save bhubbard/5958cea6bd3569ae1adb to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/* | |
Disable Dify | |
*/ | |
add_action( 'admin_init', 'wpe_disable_dashboard_widgets', 9999 ); | |
function wpe_disable_dashboard_widgets() { | |
remove_meta_box('dashboard_primary', 'dashboard', 'core'); // WordPress News Widget | |
remove_meta_box('wpe_dify_news_feed', 'dashboard', 'normal'); // WPEngine News Widget | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment