Tips on Customizing IfThenGive

How to Hide IfThenGive Admin Menus

function plt_hide_ifthengive_menus() {
	//Hide "Settings → IfThenGive".
	remove_submenu_page('options-general.php', 'ifthengive_option');

	//Hide "IfThenGive".
	remove_menu_page('edit.php?post_type=ifthengive_goals');
	//Hide "IfThenGive → IfThenGive".
	remove_submenu_page('edit.php?post_type=ifthengive_goals', 'edit.php?post_type=ifthengive_goals');
	//Hide "IfThenGive → Add Goal".
	remove_submenu_page('edit.php?post_type=ifthengive_goals', 'post-new.php?post_type=ifthengive_goals');
}

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

Where do I put this code?

How to Hide IfThenGive Meta Boxes

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

	//Hide the "Goal" meta box.
	remove_meta_box('ifthengive-meta-id', $screen->id, 'normal');
}

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