Dont

Do I need to escape get_the_post_thumbnail function?

Do I need to escape get_the_post_thumbnail function?

No, you don't have to escape the data. And it doesn't need to be escaped. Please take a look at the_post_thumbnail() function, it didn't do any escaping.

Wordpress Permalink Issue for media permalink leading to 404 page when set as postname
How do I fix a permalink issue in WordPress? How do I change the media Permalink in WordPress? How do I change permalinks in WordPress without breakin...
Trigger popup on click product image in WordPress
How do I add a pop up to a button click in WordPress? How do I make an image popup in WordPress? How do you pop everything on click? Which plugin is u...
Manage roles and capabilities without loads of code
How do I manage roles in WordPress? How do you add capability in user role editor? What do the different WordPress roles mean? How do I add user roles...