Tips on Customizing Ultimate Timeline – Responsive History Timeline

How to Hide Ultimate Timeline - Responsive History Timeline Admin Menus

function plt_hide_ultimate_timeline_menus() {
	//Hide "Ultimate Timeline".
	remove_menu_page('edit.php?post_type=weblizar_timeline');
	//Hide "Ultimate Timeline → All Stories".
	remove_submenu_page('edit.php?post_type=weblizar_timeline', 'edit.php?post_type=weblizar_timeline');
	//Hide "Ultimate Timeline → Add New Story".
	remove_submenu_page('edit.php?post_type=weblizar_timeline', 'post-new.php?post_type=weblizar_timeline');
	//Hide "Ultimate Timeline → Timeline Options".
	remove_submenu_page('edit.php?post_type=weblizar_timeline', 'wct_timeline_options');
}

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

Where do I put this code?

How to Hide Ultimate Timeline - Responsive History Timeline Meta Boxes

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

	//Hide the "Weblizar Timeline Story Image" meta box.
	remove_meta_box('wct-image', $screen->id, 'normal');
	//Hide the "Weblizar Timeline Story Settings" meta box.
	remove_meta_box('wct-settings', $screen->id, 'normal');
	//Hide the "Weblizar Timeline Shortcode" meta box.
	remove_meta_box('wct-shortcode', $screen->id, 'side');
	//Hide the "Weblizar Timeline Story Icon" meta box.
	remove_meta_box('wct-fa-icons', $screen->id, 'side');
}

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