Created
April 23, 2015 20:28
-
-
Save bhubbard/72fa94989e5c2c6a0c51 to your computer and use it in GitHub Desktop.
Remove WpEngine Bloat Widget
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 | |
/** | |
* Plugin Name: Remove WpEngine Bloat | |
* Plugin URI: http://wordpress.stackexchange.com/questions/147602/ | |
* Description: Remove the affiliate links widget from the Admin Widgets Page. | |
* http://wordpress.stackexchange.com/questions/147602/remove-unregister-or-hide-a-widget-added-by-a-plugin | |
* Version: 1.0 | |
* Author: Bryan WIllis | |
* Author URI: | |
* License: | |
*/ | |
function remove_unwanted_wpe_bloat_affiliate_widget_wpse_147602() { | |
// unregister the widget and its control | |
wp_unregister_sidebar_widget('wpe_widget_powered_by'); | |
} | |
add_action('widgets_init', 'remove_unwanted_wpe_bloat_affiliate_widget_wpse_147602', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment