How to Hide MetaSlider Admin Menus

function plt_hide_ml_slider_menus() {
	//Hide "MetaSlider".
	remove_menu_page('metaslider');
	//Hide "MetaSlider → MetaSlider".
	remove_submenu_page('metaslider', 'metaslider');
	//Hide "MetaSlider → Settings".
	remove_submenu_page('metaslider', 'metaslider-settings');
	//Hide "MetaSlider → Add-ons".
	remove_submenu_page('metaslider', 'upgrade-metaslider');
}

add_action('admin_menu', 'plt_hide_ml_slider_menus', 9554);

Where do I put this code?