bp_media_download_file_redirect( string $file_path, string $filename = '' )
Redirect to a file to start the download.
Description
Parameters
- $file_path
-
(Required) File path.
- $filename
-
(Optional) File name.
Default value: ''
Source
File: bp-media/bp-media-filters.php
function bp_media_download_file_redirect( $file_path, $filename = '' ) { header( 'Location: ' . $file_path ); exit; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.4.1 | 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.