bp_friends_mark_friendship_rejected_notifications_by_item_id( int $friendship_id, object $friendship )

Remove friend request notice when a member rejects another members


Description Description


Parameters Parameters

$friendship_id

(Required) Friendship ID (not used).

$friendship

(Required) Friendship object.


Top ↑

Source Source

File: bp-friends/bp-friends-notifications.php

function bp_friends_mark_friendship_rejected_notifications_by_item_id( $friendship_id, $friendship ) {
	bp_notifications_mark_notifications_by_item_id( $friendship->friend_user_id, $friendship->initiator_user_id, buddypress()->friends->id, 'friendship_request' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.