Tips on Customizing MaxGalleria

How to Hide MaxGalleria Admin Menus

function plt_hide_maxgalleria_menus() {
	//Hide "MaxGalleria".
	remove_menu_page('edit.php?post_type=maxgallery');
	//Hide "MaxGalleria → MaxGalleria".
	remove_submenu_page('edit.php?post_type=maxgallery', 'edit.php?post_type=maxgallery');
	//Hide "MaxGalleria → Categories".
	remove_submenu_page('edit.php?post_type=maxgallery', 'edit-tags.php?taxonomy=category&post_type=maxgallery');
	//Hide "MaxGalleria → Tags".
	remove_submenu_page('edit.php?post_type=maxgallery', 'edit-tags.php?taxonomy=post_tag&post_type=maxgallery');
	//Hide "MaxGalleria → Upgrade to Pro".
	remove_submenu_page('edit.php?post_type=maxgallery', 'mg-upgrade-to-pro');
	//Hide "MaxGalleria → NextGEN Importer".
	remove_submenu_page('edit.php?post_type=maxgallery', 'maxgalleria-nextgen-importer');
	//Hide "MaxGalleria → Settings".
	remove_submenu_page('edit.php?post_type=maxgallery', 'maxgalleria-settings');
	//Hide "MaxGalleria → Support".
	remove_submenu_page('edit.php?post_type=maxgallery', 'maxgalleria-support');
	//Hide "MaxGalleria →".
	remove_submenu_page('edit.php?post_type=maxgallery', 'mg-admin-notice');
	//Hide "MaxGalleria →".
	remove_submenu_page('edit.php?post_type=maxgallery', 'mg-review-notice');
	//Hide "MaxGalleria →".
	remove_submenu_page('edit.php?post_type=maxgallery', 'mg-review-later');
}

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

Where do I put this code?

How to Hide the "New Gallery" Meta Box

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

	//Hide the "New Gallery" meta box.
	remove_meta_box('meta-new', $screen->id, 'normal');
}

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