Skip to main content

Filter: gform_file_path_pre_delete_file

Allow the file path to be overridden so files stored outside the /wp-content/uploads/gravity_forms/ directory can be deleted.

Parameters

NameTypeDescription
$file_pathstringThe path of the file to be deleted.
$urlstringThe URL of the file to be deleted.

Since

Source

Defined in forms_model.php at line 2447