Last active
January 18, 2018 09:30
-
-
Save natenault/fe8986e5b57125208e55461997f22396 to your computer and use it in GitHub Desktop.
Disable default Genesis widgets
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
/** | |
* Disbale default Genesis widgets | |
*/ | |
function nn_disable_genesis_widgets() { | |
unregister_widget( 'Genesis_Latest_Tweets_Widget' ); | |
unregister_widget( 'Genesis_Menu_Pages_Widget' ); | |
unregister_widget( 'Genesis_User_Profile_Widget' ); | |
unregister_widget( 'Genesis_Widget_Menu_Categories' ); | |
} | |
add_action( 'widgets_init', 'nn_disable_genesis_widgets', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment