Created
March 24, 2014 11:09
-
-
Save billerickson/9738336 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Remove Genesis widgets. | |
* | |
* @since 1.0.0 | |
*/ | |
function ea_remove_genesis_widgets() { | |
unregister_widget( 'Genesis_Featured_Page' ); | |
unregister_widget( 'Genesis_Featured_Post' ); | |
unregister_widget( 'Genesis_User_Profile_Widget' ); | |
} | |
add_action( 'widgets_init', 'ea_remove_genesis_widgets', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment