Tips on Customizing SEO Redirection Plugin

How to Hide the "SEO Redirection" Admin Menu

function plt_hide_seo_redirection_menus() {
	//Hide the "Settings → SEO Redirection" menu.
	remove_submenu_page('options-general.php', 'seo-redirection.php');
}

add_action('admin_menu', 'plt_hide_seo_redirection_menus', 11);

Where do I put this code?

How to Hide the "SEO Redirection" Meta Box

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

	//Hide the "SEO Redirection" meta box.
	remove_meta_box('WPSR_meta_box', $screen->id, 'advanced');
}

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