Add prefix to all wordPress existing media images name , Image URL and also database
I want to add the prefix "keyword" to all existing image names in Media in WordPress by using PHP and also in the database and URL. e.g if the image name is "fisrt.jpeg" I want to convert it to "keyword_first.jpeg" and also change the name in the database. In short, to add "keyword" to all image's names and change them in the database and image URL is it possible Thanks Note: For those images that are already stored in WordPress media not for newly uploaded.i want to do it by using PHP hooks in WordPress.
Comments
Post a Comment