in

Rename uploaded files in WordPress (wp-mix.com)

Here is a function used in my free WordPress plugin User Submitted Posts that enables you to rename WordPress media uploads. So for example, if the user uploads a JPG image named “sweet-ride.jpg”, the following function will append a random string to rename the file “sweet-ride-random.jpg”, where “random” is a random alphanumeric string containing 20 characters. And it’s all made possible (and stupidly easy) thanks to the WordPress sanitize_file_name filter hook.

Leave a Reply

How to Disable Block Editor (Gutenberg) + Use Previous WordPress Editor

How to Disable Block Editor (Gutenberg) + Use Previous WordPress Editor (themeisle.com)

Gutenberg Components: BaseControl

Gutenberg Components: BaseControl (www.ibenic.com)