How can I save the original filename to the database?

How about saving the original filename inside the current $_REQUEST and processing it whenever WordPress generates the attachment metadata: /** * Store original attachment filename in the current $_REQUEST superglobal * * @param NULL * @param Array $file – Uploaded File Information * * @return NULL */ function wpse342438_store_attachment_filename( $null, $file ) { $_REQUEST[‘original_filename’] = … Read more

Setting higher upload limit

add this to your .htaccess file in the root of WordPress installation directory: php_value upload_max_filesize 20M php_value post_max_size 20M and you can change 20 to whatever you want, unless your hosting server is limiting it it should work just fine. Update: Create the php.ini File and add the Following: memory_limit = 20M upload_max_filesize = 192M … Read more

Insert into Post button is missing for certain images

If you have a post type that doesn’t have the editor, uploading media in that post type will cause it to not have an “Insert into Post” button. Not sure if that’s your situation, but personal experience says that could be the reason 🙂 I would definitely disable all plugins and switch to a default … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)