How to Hide the "Photo Gallery" Admin Menu

function plt_hide_photo_gallery_menus() {
	//Hide the "Photo Gallery" menu.
	remove_menu_page('bwg_subscribe');
}

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

Where do I put this code?