How to Hide the "Bard Extra" Admin Menu

function plt_hide_bard_extra_menus() {
	//Hide the "Bard Extra" menu.
	remove_menu_page('bard-extra');
}

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

Where do I put this code?