Tips on Customizing Lifeline Donation

How to Hide Lifeline Donation Admin Menus

function plt_hide_lifeline_donation_menus() {
	//Hide "Causes".
	remove_menu_page('edit.php?post_type=cause');
	//Hide "Causes → All Causes".
	remove_submenu_page('edit.php?post_type=cause', 'edit.php?post_type=cause');
	//Hide "Causes → Add New Cause".
	remove_submenu_page('edit.php?post_type=cause', 'post-new.php?post_type=cause');
	//Hide "Causes → Categories".
	remove_submenu_page('edit.php?post_type=cause', 'edit-tags.php?taxonomy=cause_cat&post_type=cause');

	//Hide "Projects".
	remove_menu_page('edit.php?post_type=project');
	//Hide "Projects → All Projects".
	remove_submenu_page('edit.php?post_type=project', 'edit.php?post_type=project');
	//Hide "Projects → Add New Project".
	remove_submenu_page('edit.php?post_type=project', 'post-new.php?post_type=project');
	//Hide "Projects → Category".
	remove_submenu_page('edit.php?post_type=project', 'edit-tags.php?taxonomy=project_cat&post_type=project');

	//Hide "Lifeline Donation".
	remove_menu_page('wp-commerce-settings');
	//Hide "Lifeline Donation → Lifeline Donation".
	remove_submenu_page('wp-commerce-settings', 'wp-commerce-settings');
	//Hide "Lifeline Donation → Dashboard".
	remove_submenu_page('wp-commerce-settings', 'wp-commerce-dashboard');
	//Hide "Lifeline Donation → Extensions".
	remove_submenu_page('wp-commerce-settings', 'wp-commerce-extensions');
	//Hide "Lifeline Donation → Donations".
	remove_submenu_page('wp-commerce-settings', 'edit.php?post_type=orders');
}

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

Where do I put this code?

How to Hide Lifeline Donation Meta Boxes

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

	//Hide the "Donation Setting" meta box.
	remove_meta_box('wpcm_order_metabox_basic', $screen->id, 'advanced');
	//Hide the "Cause Settings" meta box.
	remove_meta_box('causes_settings', $screen->id, 'normal');
	//Hide the "Project Additional Fields" meta box.
	remove_meta_box('project_settings', $screen->id, 'normal');
}

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

How to Hide the "WP Commerce Status" Dashboard Widget

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

	//Remove the "WP Commerce Status" widget.
	remove_meta_box('dashboard_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_lifeline_donation_dashboard_widgets', 20);