bp_media_download_link( $attachment_id, $media_id )
Return download link of the media.
Description
Parameters
- $attachment_id
-
(Required)
- $media_id
-
(Required)
Return
(mixed|void)
Source
File: bp-media/bp-media-functions.php
function bp_media_download_link( $attachment_id, $media_id ) { if ( empty( $attachment_id ) ) { return; } $link = site_url() . '/?attachment_id=' . $attachment_id . '&media_type=media&download_media_file=1' . '&media_file=' . $media_id; return apply_filters( 'bp_media_download_link', $link, $attachment_id ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.4.4 | 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.