bp_document_download_link( $attachment_id,  $document_id )

Return download link of the document.

Description

Parameters

$attachment_id

(Required)

$document_id

(Required)

Return

(mixed|void)

Source

File: bp-document/bp-document-functions.php

function bp_document_download_link( $attachment_id, $document_id ) {

	if ( empty( $attachment_id ) ) {
		return;
	}

	$link = site_url() . '/?attachment=' . $attachment_id . '&document_type=document&download_document_file=1' . '&document_file=' . $document_id;

	return apply_filters( 'bp_document_download_link', $link, $attachment_id );

}

Changelog

Changelog
Version Description
BuddyBoss 1.4.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.