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
2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 | 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
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.