Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Unique Uploaded Media Name

Apraksts

Unique uploaded media names by adding some extra random string.

By default, WordPress upload file name slugs at it are. Sometimes if any file name conflicts, WordPress adds extra suffix at the end of the slug name.

Example: my-image.jpg and if the file name is similar, my-image-1.jpg my-image-2.jpg and so on.

By installing this plugin, every uploaded media will have unique values as a suffix at the end of the uploaded media name. Default uploaded string value is 15 character and have zero possibility of file name confliction. Uploaded file name + Unique String

Example

  • my-image-475445-SIu7oQGW.jpg
  • my-image-311629-TFuNSyHH.jpg

Features

  • Adds unique suffix at the end of the uploaded file name. e.g.: my-image-311629-W3dRonmw.jpg
  • Generated strings are very unique and less possibility of confliction
  • Remove Accents Convert to ASCII
  • Crypto Rand Secure with openssl_random_pseudo_bytes
  • Added more extra switch conditions to use other string generator. (Numeric, Alpha Numeric, No Zero Numeric, All String, Hexadecimal, Capital, Alpha and Distinct). Just edit line number 75 and 76.
  • converts unnecessary space, underscore and special characters to hyphen character.
  • Consumes very low memory
  • Single file 3.02KB
  • Open source license, modify and distribute with your own. GPLv2 or later
  • Tested with WordPress 5.2.1

Ekrānuzņēmumi

  • screenshot-1.png

Uzstādīšana

  1. Upload the entire unique-uploaded-media-name folder to the /wp-content/plugins/ directory. (If the folder name changes, rename the folder name with your own.)
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. That’s it. future uploaded media will be generated with unique strings

BUJ

Do you have questions or issues with Unique Uploaded Media Name? Just send an email to sharkar@akhaura.info . I will be happy to answer your queries.

Atsauksmes

29 maijs, 2019
Although, most of the time I personally prefer to uploaded contents should have a unique string in order to identify them easily. I thought it would be great if I submit a plugin which may help others. A very lightweight plugin which requires 3.02 Kilobytes of space.
Lasīt 1 atsauksmes

Autori un izstrādātāji

“Unique Uploaded Media Name” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Unique Uploaded Media Name” savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

1.0

  • First commit

1.0.1

  • Support WordPress 5.2.1