Tips on Customizing Give – Donation Plugin and Fundraising Platform

How to Hide Give - Donation Plugin Admin Menus

function plt_hide_give_menus() {
	//Hide "Donations".
	remove_menu_page('edit.php?post_type=give_forms');
	//Hide "Donations → All Forms".
	remove_submenu_page('edit.php?post_type=give_forms', 'edit.php?post_type=give_forms');
	//Hide "Donations → Add Form".
	remove_submenu_page('edit.php?post_type=give_forms', 'post-new.php?post_type=give_forms');
	//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-addons');
}

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

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 "Give: Donation Statistics" Dashboard Widget

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

	//Remove the "Give: Donation Statistics" widget.
	remove_meta_box('give_dashboard_sales', 'dashboard', 'normal');
}

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