Testing Suspended

Testing of this plugin has been temporarily suspended due to an error. It will automatically resume when a new plugin version is released.

Tips on Customizing WooSidebars

How to Hide the "Widget Areas" Admin Menu

function plt_hide_woosidebars_menus() {
	//Hide the "Appearance → Widget Areas" menu.
	remove_submenu_page('themes.php', 'edit.php?post_type=sidebar');
}

add_action('admin_menu', 'plt_hide_woosidebars_menus', 21);

Where do I put this code?

How to Hide WooSidebars Meta Boxes

function plt_hide_woosidebars_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Conditions" meta box.
	remove_meta_box('woosidebars-conditions', $screen->id, 'normal');
	//Hide the "Description" meta box.
	remove_meta_box('sidebar-description', $screen->id, 'normal');
	//Hide the "Sidebar To Replace" meta box.
	remove_meta_box('sidebar-to-replace', $screen->id, 'side');
}

add_action('add_meta_boxes', 'plt_hide_woosidebars_metaboxes', 20);