[buddypress-trac] [BuddyPress] #5019: Fire 'friends_friendship_deleted' hook after delete friendship.

buddypress-trac noreply at wordpress.org
Mon May 27 12:45:09 UTC 2013


#5019: Fire 'friends_friendship_deleted' hook after delete friendship.
---------------------------+------------------
 Reporter:  mukkundthanki  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  low            |   Milestone:  1.8
Component:  Friends        |     Version:  1.7
 Severity:  minor          |  Resolution:
 Keywords:  2nd-opinion    |
---------------------------+------------------

Comment (by mukkundthanki):

 you are right on that, and i guess my suggestion is also improper because
 it will be useless of $friendship_id in hook which actually deleted. so,
 hook is right as its right now.we can make use of friendship details
 before its delete, but can we make one more hook which fire after
 successful deletion of friendship ?? like this

 {{{
 do_action( 'friends_friendship_deleted_success', $initiator_userid,
 $friend_userid );
 }}}

 so, we can make use of 'friends_update_friend_totals' function.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5019#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list