Can we change the title and alt attributes of the\_post\_thumbnails and set them to post title instead ? like creating a function for it and adding a filter ? I tried searching but I can't seem to find what I want.

and thanks in advance.