Last active
March 24, 2016 23:06
-
-
Save kungfuguapo/920983192565fc1a7f13 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