Skip to content

Instantly share code, notes, and snippets.

@heldervilela
Created March 21, 2017 19:12
Show Gist options
  • Save heldervilela/5d5e82c5781867065b5b072e1b644548 to your computer and use it in GitHub Desktop.
Save heldervilela/5d5e82c5781867065b5b072e1b644548 to your computer and use it in GitHub Desktop.
Remove All Widgets from Sidebar
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