BuddyPress can be used as a framework – it allows you to friend other users, and is a good place to start from.
[Update]
This is the structure of the BuddyPress friends table (bp_friends)
CREATE TABLE `wp_bp_friends` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`initiator_user_id` bigint(20) NOT NULL,
`friend_user_id` bigint(20) NOT NULL,
`is_confirmed` tinyint(1) DEFAULT '0',
`is_limited` tinyint(1) DEFAULT '0',
`date_created` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `initiator_user_id` (`initiator_user_id`),
KEY `friend_user_id` (`friend_user_id`)
);
Related Posts:
- Change the Author Slug from Username to Nickname
- Change the author slug from nickname to ID
- How to let contributors to create a new revision(draft) editing their published posts
- Display edit link if post author is current user
- Force display name as full name
- Authors Page : A page of authors
- Completely hide user info
- Total Word Count For Posts And Comments By One Author
- Users roles, make a page belonging to multiple users
- Is there any function available to echo current user’s profile url?
- the_author_meta(‘user_url’, $author->ID) not working properly. how can I solve this?
- Where is the information about the authors for articles stored?
- Getting author page slug from get_users() or get_userdata() functions
- Delete User via Frontend
- How to force authors to ‘submit for review’?
- Create Next and Previous Link to User orderby Last Name
- Creating User Profiles using author.php
- Author comment count in author page
- Order users by user role
- How can I set wp_dropdown_users so that it shows only authors?
- How to create page for user?
- How do I tag every author in their posts that they have made previously
- How do I change the user via SQL?
- Add new user and user bio at same time
- show count author post today
- Link to Authors blog posts
- How to allow an user role to create a new user under a role which lower than his level only?
- How to programatically change username (user_login)?
- How to get userid at wp_logout action hook?
- What’s the difference between the capability remove_users and delete_users?
- How to change user_login with wp-cli?
- Replacing the WordPress password validation
- How to hide media uploads by other users in the Media menu?
- Get users with atleast one post
- edit profile validation refreshes all field if missing wordpress
- How to order users alphabetically by their last name?
- Wp_User_Query not sorting by meta key
- How to use hyperdb to separate and share a user dataset between wordpress installs?
- How to list users that have written custom post types and hide the ones that have not?
- Front end user meta options for users
- How to migrate wordpress users from one blog to another
- Drop down list in user profile page
- How can I link users across multiple subdomains?
- Importing Existing Users with Passwords
- Create not-activated user in code, wordpress
- How to delete all post and attachments of a user when I delete it?
- Limit amout of sessions on user-by-user basis?
- Redirect user to login before viewing custom post
- Force user to change their password on first log in of site using shortcode
- Create a front user register/login/profile & logout without interfering with wp-login.php?
- How to export bbPress (forums, topics, replies) and all users?
- Display users in order by an “order” custom meta field
- Rest API code to get ID of current user not working: get_current_user_id() gives 0
- Translate emails into the language of the user
- Can I check which users ran which updates?
- Extend backend User search to custom user meta
- Move users and passwords from one wordpress site to another
- Bulk lock users without email address?
- Separate Out Real Users
- How to prevent a specific users’s profile photo (gravatar) from showing on the frontend to other users?
- WordPress REST Api: update user
- Hackers tried user name with wrong case [closed]
- How to set custom avatar for users?
- get author of published post
- SQL Bulk update all WordPress user’s nicknames to firstname + lastname format
- Redirect logged on user to a specific page based on wp user role, page id
- How to set all external links from a certain user to “nofollow”?
- Echo Text If User Is Logged in But NOT the Author of post
- Show WordPress users in grid with image and name
- Automatic Website user password generation
- Redirect users after login
- How to hide some users to unlogged users [closed]
- List all users and current week entries
- Need to manually add multiple WP users with same e-mail address (with good reason)
- How to get current user on a multi site that is using domain mapping?
- Use members from 1 site on another one
- Can I edit the database to change a login?
- User Meta stuff
- Is it possible to make specific posts editable by all authors?
- User can’t search himself on rest api
- How do I update user email from frontend input field?
- Cannot update newly added User field using wp_update_user
- Block editor completely gone for second of two super user
- How to prevent multiple user accounts with the same meta field?
- How do I set a maximum upload size for a specific user role (Editor)
- members only products
- Change author base and slug in author link
- Modify the user data stdObject and add extra items to it?
- Create relationships between users or user roles
- User Permissions on custom post type
- update custom field user profile from front end form
- Changing WordPress author name in database
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- I try to add informations to User profile
- Limit roles displayed in users.php depending on custom role
- Add a column before username in the users profile table
- Privacy in WordPress
- Create a wordpress admin user and only let them edit and post blog posts?
- Sorting Users page admin column with ACF field
- Can we get user profile page using user_id in the URL?