Tips on Customizing Asgaros Forum

How to Hide Asgaros Forum Admin Menus

function plt_hide_asgaros_forum_menus() {
	//Hide "Forum".
	remove_menu_page('asgarosforum-structure');
	//Hide "Forum → Structure".
	remove_submenu_page('asgarosforum-structure', 'asgarosforum-structure');
	//Hide "Forum → Appearance".
	remove_submenu_page('asgarosforum-structure', 'asgarosforum-appearance');
	//Hide "Forum → Usergroups".
	remove_submenu_page('asgarosforum-structure', 'asgarosforum-usergroups');
	//Hide "Forum → Ads".
	remove_submenu_page('asgarosforum-structure', 'asgarosforum-ads');
	//Hide "Forum → Settings".
	remove_submenu_page('asgarosforum-structure', 'asgarosforum-options');
}

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

Where do I put this code?

How to Hide the "Create Forum Topic" Meta Box

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

	//Hide the "Create Forum Topic" meta box.
	remove_meta_box('asgaros-forum-topic-meta-box', $screen->id, 'side');
}

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