Getting image alt from a filename

Question

As shown in the image, the image alt is generated from file name. Now what I want is img alt to be generated from alternative text from Attachment Details ? Is to possible to change _wp_attached_file to _wp_attachment_image_alt all over the site?

https://www.wptricks.com/wp-content/uploads/2020/09/oXzx1.jpg

https://www.wptricks.com/wp-content/uploads/2020/09/ojNsS.jpg

0
GoonerBruh 3 months 0 Answers 40 views 0

Leave an answer