Tips on Customizing GiveWP – Donation Plugin and Fundraising Platform

How to Hide Give - Donation Plugin Admin Menus

function plt_hide_give_menus() {
	//Hide "Tools → Scheduled Actions".
	remove_submenu_page('tools.php', 'action-scheduler');

	//Hide "Donations".
	remove_menu_page('edit.php?post_type=give_forms');
	//Hide "Donations → All Forms".
	remove_submenu_page('edit.php?post_type=give_forms', 'give-forms');
	//Hide "Donations → Add Form".
	remove_submenu_page('edit.php?post_type=give_forms', 'edit.php?post_type=give_forms&page=givewp-form-builder');
	//Hide "Donations → Donations".
	remove_submenu_page('edit.php?post_type=give_forms', 'give-payment-history');
	//Hide "Donations → Donors".
	remove_submenu_page('edit.php?post_type=give_forms', 'give-donors');
	//Hide "Donations → Reports".
	remove_submenu_page('edit.php?post_type=give_forms', 'give-reports');
	//Hide "Donations → Settings".
	remove_submenu_page('edit.php?post_type=give_forms', 'give-settings');
	//Hide "Donations → Tools".
	remove_submenu_page('edit.php?post_type=give_forms', 'give-tools');
	//Hide "Donations → Add-ons".
	remove_submenu_page('edit.php?post_type=give_forms', 'give-add-ons');
	//Hide "Donations → Setup".
	remove_submenu_page('edit.php?post_type=give_forms', 'give-setup');
}

add_action('admin_menu', 'plt_hide_give_menus', 1000);

Where do I put this code?

How to Hide the "Donation Form Options" Meta Box

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

	//Hide the "Donation Form Options" meta box.
	remove_meta_box('give-metabox-form-data', $screen->id, 'normal');
}

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

How to Hide the "GiveWP Donations: ReportsVisit Reports" Dashboard Widget

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

	//Remove the "GiveWP Donations: ReportsVisit Reports" widget.
	remove_meta_box('givewp_reports_widget', 'dashboard', 'normal');
}

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