How to Hide Ninja Tables Admin Menus

function plt_hide_ninja_tables_menus() {
	//Hide "NinjaTables".
	remove_menu_page('ninja_tables');
	//Hide "NinjaTables → Tables".
	remove_submenu_page('ninja_tables', 'admin.php?page=ninja_tables#/home');
	//Hide "NinjaTables → Import".
	remove_submenu_page('ninja_tables', 'admin.php?page=ninja_tables#/tools');
	//Hide "NinjaTables → Tools".
	remove_submenu_page('ninja_tables', 'admin.php?page=ninja_tables#/tools');
	//Hide "NinjaTables → Charts".
	remove_submenu_page('ninja_tables', 'admin.php?page=ninja_tables#/charts');
	//Hide "NinjaTables → Get Pro".
	remove_submenu_page('ninja_tables', 'https://wpmanageninja.com/downloads/ninja-tables-pro-add-on/?utm_source=ninja-tables&utm_medium=wp&utm_campaign=wp_plugin&utm_term=upgrade_menu');
	//Hide "NinjaTables → Help".
	remove_submenu_page('ninja_tables', 'admin.php?page=ninja_tables#/help');
}

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

Where do I put this code?