bp_get_friend_friendship_id

  • apply_filters( 'bp_get_friend_friendship_id', $friendship_id )

    Source Reference:

    • Component: BuddyPress :: bp-friends
      File: /bp-friends/bp-friends-template.php :: Trac Source Line: 398
      }
      	function bp_get_friend_friendship_id() {
      		global $members_template, $bp;
      
      		if ( !$friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . $bp->loggedin_user->id ) ) {
      			$friendship_id = friends_get_friendship_id( $members_template->member->id, $bp->loggedin_user->id );
      			wp_cache_set( 'friendship_id_' . $members_template->member->id . '_' . $bp->loggedin_user->id, $friendship_id, 'bp' );
      		}
      
      		return apply_filters( 'bp_get_friend_friendship_id', $friendship_id );
      	}
      
      function bp_friend_accept_request_link() {
      	echo bp_get_friend_accept_request_link();
      }
      	function bp_get_friend_accept_request_link() {
      		global $members_template, $bp;
      
      		if ( !$friendship_id = wp_cache_get( 'friendship_id_' . $members_template->member->id . '_' . $bp->loggedin_user->id ) ) {
      			$friendship_id = friends_get_friendship_id( $members_template->member->id, $bp->loggedin_user->id );
      

Comments are closed.