Tips on Customizing Mega Menu Plugin for WordPress – AP Mega Menu

How to Hide AP Mega Menu Admin Menus

function plt_hide_ap_mega_menu_menus() {
	//Hide "AP MEGA MENU".
	remove_menu_page('ap-mega-menu');
	//Hide "AP MEGA MENU → General Settings".
	remove_submenu_page('ap-mega-menu', 'ap-mega-menu');
	//Hide "AP MEGA MENU → Theme Settings".
	remove_submenu_page('ap-mega-menu', 'wpmm-theme-settings');
	//Hide "AP MEGA MENU → How to Use".
	remove_submenu_page('ap-mega-menu', 'wpmm-how-to-use');
	//Hide "AP MEGA MENU → More WordPress Stuff".
	remove_submenu_page('ap-mega-menu', 'wpmm-about-us');
	//Hide "AP MEGA MENU → Documentation".
	remove_submenu_page('ap-mega-menu', 'apmm-doclinks');
	//Hide "AP MEGA MENU → Check Premium Version".
	remove_submenu_page('ap-mega-menu', 'apmm-premium');
}

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

Where do I put this code?

How to Hide the "Select AP Mega Menu Settings" Meta Box

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

	//Hide the "Select AP Mega Menu Settings" meta box.
	remove_meta_box('nav-menu-theme-apmegamenus', $screen->id, 'side');
}

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