bp_get_friend_reject_request_link

  • apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( $bp->loggedin_user->domain . bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ) )

    Source Reference:

    • Component: BuddyPress :: bp-friends
      File: /bp-friends/bp-friends-template.php :: Trac Source Line: 426
      }
      	function bp_get_friend_reject_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 );
      			wp_cache_set( 'friendship_id_' . $members_template->member->id . '_' . $bp->loggedin_user->id, $friendship_id, 'bp' );
      		}
      
      		return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( $bp->loggedin_user->domain . bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ) );
      	}
      
      function bp_total_friend_count( $user_id = 0 ) {
      	echo bp_get_total_friend_count( $user_id );
      }
      	function bp_get_total_friend_count( $user_id = 0 ) {
      		return apply_filters( 'bp_get_total_friend_count', friends_get_total_friend_count( $user_id ) );
      	}
      	add_filter( 'bp_get_total_friend_count', 'bp_core_number_format' );
      

Comments are closed.