wp_stateless_addon_sync_files_path

wp_stateless_addon_sync_files_path

Appears in:
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.1

apply_filters('wp_stateless_addon_sync_files_path') is found 2 times:

  • /lib/classes/compatibility/wpforms.php line 152
              if ( ! $file || $file['error'] !== 0 ) {
                continue;
              }
    
              $dir = apply_filters('wp_stateless_addon_sync_files_path', '', self::TMP_PATH);
              $filename = $dir . $_FILES[ $input_name ]['name'];
    
              if ( $this->filesystem->move( $_FILES[ $input_name ]['tmp_name'], $filename, true ) ) {
                $_FILES[ $input_name ]['tmp_name'] = $filename;
              }
            }
    
  • /lib/classes/compatibility/wpforms.php line 350
     
              return $file_list;
            }
    
            $dir = apply_filters('wp_stateless_addon_sync_files_path', '', self::STORAGE_PATH); 
    
            if (is_dir($dir)) {
              // Getting all the files from dir recursively.
              $files = Utility::get_files($dir);
    
              // validating and adding to the $files array.
    

See this hook used in plugins: