How to Hide Pipe Audio Video and Screen Recorder Admin Menus

function plt_hide_pipe_audio_video_and_screen_recorder_menus() {
	//Hide "Pipe Recorder".
	remove_menu_page('pipe-recorder');
	//Hide "Pipe Recorder → Create Recording".
	remove_submenu_page('pipe-recorder', 'pipe-recorder');
	//Hide "Pipe Recorder → Embed Recorder".
	remove_submenu_page('pipe-recorder', 'pipe-recorder/load/embed-recorder');
	//Hide "Pipe Recorder → Recordings".
	remove_submenu_page('pipe-recorder', 'pipe-recorder/load/recordings');
	//Hide "Pipe Recorder → Settings".
	remove_submenu_page('pipe-recorder', 'pipe-recorder/load/settings');
}

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

Where do I put this code?