BP_Friends_Friendship::delete()
Delete the current friendship from the database.
Description Description
Return Return
(bool|int)
Source Source
File: bp-friends/classes/class-bp-friends-friendship.php
public function delete() { global $wpdb; $bp = buddypress(); return $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->friends->table_name} WHERE id = %d", $this->id ) ); }
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |