Tips on Customizing Frontend File Manager Plugin

How to Hide WP File Manager Admin Menus

function plt_hide_nmedia_user_file_uploader_menus() {
	//Hide "File Manager".
	remove_menu_page('edit.php?post_type=wpfm-files');
	//Hide "File Manager → All Files".
	remove_submenu_page('edit.php?post_type=wpfm-files', 'edit.php?post_type=wpfm-files');
	//Hide "File Manager → Add New".
	remove_submenu_page('edit.php?post_type=wpfm-files', 'post-new.php?post_type=wpfm-files');
	//Hide "File Manager → Settings".
	remove_submenu_page('edit.php?post_type=wpfm-files', 'wpfm-settings');
}

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

Where do I put this code?

How to Hide the "File Manage" Meta Box

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

	//Hide the "File Manage" meta box.
	remove_meta_box('wpfm_admin_file_upload', $screen->id, 'normal');
}

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