bp_document_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-document/bp-document-filters.php
function bp_document_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.