Tips on Customizing SchedulePress – Auto Post & Publish, Auto Social Share, Schedule Posts with Editorial Calendar & Missed Schedule Post Publisher

How to Hide SchedulePress Admin Menus

function plt_hide_wp_scheduled_posts_menus() {
	//Hide "Posts → Calendar".
	remove_submenu_page('edit.php', 'schedulepress-post');

	//Hide "SchedulePress".
	remove_menu_page('schedulepress');
	//Hide "SchedulePress → Settings".
	remove_submenu_page('schedulepress', 'schedulepress');
	//Hide "SchedulePress → Calendar".
	remove_submenu_page('schedulepress', 'schedulepress-calendar');
}

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

Where do I put this code?

How to Hide the "Scheduled Posts" Dashboard Widget

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

	//Remove the "Scheduled Posts" widget.
	remove_meta_box('wp_scp_dashboard_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_wp_scheduled_posts_dashboard_widgets', 20);