bp_friends_mark_friendship_request_notifications_by_type

Delete any friendship request notifications for the logged in user.

Description

bp_friends_mark_friendship_request_notifications_by_type(); 

Usage

  1. if ( !function_exists( 'bp_friends_mark_friendship_request_notifications_by_type' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-friends/bp-friends-notifications.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_friends_mark_friendship_request_notifications_by_type(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-friends/bp-friends-notifications.php  
  1. function bp_friends_mark_friendship_request_notifications_by_type() { 
  2. if ( isset( $_GET['new'] ) ) { 
  3. bp_notifications_mark_notifications_by_type( bp_loggedin_user_id(),buddypress)->friends->id, 'friendship_request' );