Tips on Customizing Glossary

How to Hide Glossary Admin Menus

function plt_hide_glossary_by_codeat_menus() {
	//Hide "Glossary".
	remove_menu_page('edit.php?post_type=glossary');
	//Hide "Glossary → All Glossary".
	remove_submenu_page('edit.php?post_type=glossary', 'edit.php?post_type=glossary');
	//Hide "Glossary → Add New".
	remove_submenu_page('edit.php?post_type=glossary', 'post-new.php?post_type=glossary');
	//Hide "Glossary → Glossary".
	remove_submenu_page('edit.php?post_type=glossary', 'edit-tags.php?taxonomy=glossary-cat&post_type=glossary');
	//Hide "Glossary → Settings".
	remove_submenu_page('edit.php?post_type=glossary', 'glossary');
	//Hide "Glossary → Support Forum".
	remove_submenu_page('edit.php?post_type=glossary', 'glossary-wp-support-forum');
	//Hide "Glossary → Upgrade".
	remove_submenu_page('edit.php?post_type=glossary', 'glossary-pricing');
}

add_action('admin_menu', 'plt_hide_glossary_by_codeat_menus', 1000000000);

Where do I put this code?

How to Hide Glossary Meta Boxes

function plt_hide_glossary_by_codeat_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Glossary Post Override" meta box.
	remove_meta_box('glossary_post_metabox', $screen->id, 'normal');
	//Hide the "Glossary Auto-Link settings" meta box.
	remove_meta_box('glossary_metabox', $screen->id, 'normal');
}

add_action('add_meta_boxes', 'plt_hide_glossary_by_codeat_metaboxes', 20);