BP_Friends_Friendship::delete()
Delete the current friendship from the database.
Description
Return
(bool|int)
Source
File: bp-friends/classes/class-bp-friends-friendship.php
211 212 213 214 215 216 217 | public function delete () { global $wpdb ; $bp = buddypress(); return $wpdb ->query( $wpdb ->prepare( "DELETE FROM {$bp->friends->table_name} WHERE id = %d" , $this ->id ) ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.