File Upload

The passage is telling you how to rename the file name automatically by WordPress (without using any plugins). Warning: To apply this hack, you’ll have to edit one of WordPress’s core files. Keep in mind that it is never recommended. This hack should be redone if you upgrade WordPress. open the wp-admin/includes/files.php file, and go to line 324 (approximately here). You’ll see the following: $filename = wp_unique_filename( $uploads['path'], $file['name'], $unique_filename_callback ); Change it as follows: