Disable Widgets

functions

<?php // disable all widgets
function disable_all_widgets($sidebars_widgets) {
$sidebars_widgets = array(false);
return $sidebars_widgets;
}
add_filter(‘sidebars_widgets’, ‘disable_all_widgets’);
?>


Disable Widgets