Browse: Home / Classes / Learndash_Admin_File_Download_Handler /

Learndash_Admin_File_Download_Handler::try_to_protect_file_path

Learndash_Admin_File_Download_Handler::try_to_protect_file_path( string $file_path )

Tries to protect a file path from being downloaded directly.


Description #


Parameters #

$file_path

(string) (Required) The file path.


Return #

(string) Empty string if file is protected, protect instructions if not protected.


Source #

File: includes/admin/class-learndash-admin-file-download-handler.php