Tips on Customizing Friends

How to Hide Friends Admin Menus

function plt_hide_friends_menus() {
	//Hide "Posts → Post from Feed".
	remove_submenu_page('edit.php', 'edit-tags.php?taxonomy=friend-post-feed');

	//Hide "Friends".
	remove_menu_page('friends');
	//Hide "Friends → Home".
	remove_submenu_page('friends', 'friends');
	//Hide "Friends → Add New Friend".
	remove_submenu_page('friends', 'add-friend');
	//Hide "Friends → Settings".
	remove_submenu_page('friends', 'friends-settings');
	//Hide "Friends → Friends  Requests".
	remove_submenu_page('friends', 'friends-list');
	//Hide "Friends → Plugins".
	remove_submenu_page('friends', 'friends-plugins');
}

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

Where do I put this code?

How to Hide the "Posts from Feed" Meta Box

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

	//Hide the "Posts from Feed" meta box.
	remove_meta_box('tagsdiv-friend-post-feed', $screen->id, 'side');
}

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

How to Hide the "Friends: Latest Posts" Dashboard Widget

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

	//Remove the "Friends: Latest Posts" widget.
	remove_meta_box('friends_dashboard_widget0', 'dashboard', 'side');
}

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