Created
March 21, 2017 19:12
-
-
Save heldervilela/5d5e82c5781867065b5b072e1b644548 to your computer and use it in GitHub Desktop.
Remove All Widgets from Sidebar
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
add_filter( 'sidebars_widgets', 'disable_all_widgets' ); | |
function disable_all_widgets( $sidebars_widgets ) { | |
$sidebars_widgets = array( false ); | |
return $sidebars_widgets; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment