How to Hide the "Planaday" Admin Menu

function plt_hide_planaday_api_menus() {
	//Hide the "Planaday" menu.
	remove_menu_page('planaday-api/index.php');
}

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

Where do I put this code?