Getting image alt from a filename


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?

GoonerBruh 3 months 0 Answers 40 views 0

Leave an answer