How to Hide SEMA API Admin Menus

function plt_hide_sema_api_menus() {
	//Hide the "Settings → SEMA Setting" menu.
	remove_submenu_page('options-general.php', 'sema_setting');
	//Hide the "Settings → SEMA Import" menu.
	remove_submenu_page('options-general.php', 'sema_import');
}

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

Where do I put this code?