Skip to content

Instantly share code, notes, and snippets.

@GreggFranklin
Created March 21, 2014 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GreggFranklin/9688573 to your computer and use it in GitHub Desktop.
Save GreggFranklin/9688573 to your computer and use it in GitHub Desktop.
Gravity Forms
//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