Tips on Customizing Waymark

How to Hide Waymark Admin Menus

function plt_hide_waymark_menus() {
	//Hide "Waymark".
	remove_menu_page('edit.php?post_type=waymark_map');
	//Hide "Waymark → Maps".
	remove_submenu_page('edit.php?post_type=waymark_map', 'edit.php?post_type=waymark_map');
	//Hide "Waymark → New Map".
	remove_submenu_page('edit.php?post_type=waymark_map', 'post-new.php?post_type=waymark_map');
	//Hide "Waymark → Collections".
	remove_submenu_page('edit.php?post_type=waymark_map', 'edit-tags.php?taxonomy=waymark_collection&post_type=waymark_map');
	//Hide "Waymark → Help".
	remove_submenu_page('edit.php?post_type=waymark_map', 'waymark-help');
	//Hide "Waymark → Settings".
	remove_submenu_page('edit.php?post_type=waymark_map', 'waymark-settings');
}

add_action('admin_menu', 'plt_hide_waymark_menus', 1001);

Where do I put this code?

How to Hide Waymark Meta Boxes

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

	//Hide the "Map Editor" meta box.
	remove_meta_box('waymark_map_meta', $screen->id, 'normal');
	//Hide the "Shortcode" meta box.
	remove_meta_box('waymark_map_shortcode', $screen->id, 'side');
	//Hide the "Export" meta box.
	remove_meta_box('waymark_map_export', $screen->id, 'side');
	//Hide the "Help" meta box.
	remove_meta_box('waymark_map_help', $screen->id, 'side');
}

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