Tips on Customizing Freesoul Deactivate Plugins: deactivate plugins on specific pages

How to Hide Freesoul Deactivate Plugins Admin Menus

function plt_hide_freesoul_deactivate_plugins_menus() {
	//Hide "Plugins → Freesoul Deactivate Plugins".
	remove_submenu_page('plugins.php', 'eos_dp_by_post_type');

	//Hide "Freesoul Deactivate Plugins".
	remove_menu_page('eos_dp_by_post_type');
	//Hide "Freesoul Deactivate Plugins → Post Types".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_by_post_type');
	//Hide "Freesoul Deactivate Plugins → Singles".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_menu');
	//Hide "Freesoul Deactivate Plugins → Archives".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_by_archive');
	//Hide "Freesoul Deactivate Plugins → Term Archives".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_by_term_archive');
	//Hide "Freesoul Deactivate Plugins → Mobile".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_mobile');
	//Hide "Freesoul Deactivate Plugins → Search".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_search');
	//Hide "Freesoul Deactivate Plugins → Custom URLs".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_url');
	//Hide "Freesoul Deactivate Plugins → Backend".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_admin');
	//Hide "Freesoul Deactivate Plugins → Actions".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_integration');
	//Hide "Freesoul Deactivate Plugins → Help".
	remove_submenu_page('eos_dp_by_post_type', 'eos_dp_help');
}

add_action('admin_menu', 'plt_hide_freesoul_deactivate_plugins_menus', 1000);

Where do I put this code?

How to Hide the "Freesoul Deactivate Plugins" Meta Box

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

	//Hide the "Freesoul Deactivate Plugins" meta box.
	remove_meta_box('eos_dp_sectionid', $screen->id, 'normal');
}

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