Browse Source

gf uploads path

windhamdavid 5 months ago
parent
commit
8395761613
1 changed files with 7 additions and 0 deletions
  1. 7 0
      functions.php

+ 7 - 0
functions.php

@@ -21,6 +21,13 @@ function gwp24_add_gf_capabilities(){
 }
 add_action( 'admin_init', 'gwp24_add_gf_capabilities' );
 
+add_filter( 'gform_upload_path', 'gwp24_change_upload_path', 10, 2 );
+function gwp24_change_upload_path( $path_info, $form_id ) {
+   $path_info['path'] = '/var/www/greenwoodpromise.com/html/wp-content/uploads/_apps/';
+   $path_info['url'] = 'https://greenwoodpromise.com/wp-content/uploads/_apps/';
+   return $path_info;
+}
+
 
 /***********************************************************
 ###################### BrowserSync #########################