Skip to content

Instantly share code, notes, and snippets.

/file1.php Secret

Created March 8, 2017 16:47
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 anonymous/2bc23d0036defb7747a08d30e78b9de5 to your computer and use it in GitHub Desktop.
Save anonymous/2bc23d0036defb7747a08d30e78b9de5 to your computer and use it in GitHub Desktop.
add_filter( 'gform_upload_path', 'change_upload_path', 10, 2 );
function change_upload_path( $path_info, $form_id ) {
$path_info['path'] = '/nas/content/staging/justreport/wp-content/themes/justreport/uploads/';
$path_info['url'] = 'http://justreport.staging.wpengine.com/uploads/';
return $path_info;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment