Created
March 21, 2014 15:17
-
-
Save GreggFranklin/9688573 to your computer and use it in GitHub Desktop.
Gravity Forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Change upload directory for specific form, the "4" in the gform_upload_path_4 below is the form id and this is what you would change for the form you want to customize | |
add_filter("gform_upload_path_4", "change_upload_path"); | |
function change_upload_path($path_info){ | |
$path_info["path"] = "/new/path/"; | |
$path_info["url"] = "http://new_url.com/images/"; | |
return $path_info; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment