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.

Setting custom cookies with time out in Wordpress
How do I set session timeout in WordPress? How do I create a custom cookie in WordPress? How do I view cookies in WordPress? How do I enable secure co...
How to take product category into account for WooCommerce product search results
How do I display a specific category product in WooCommerce? How do I customize search results in WooCommerce? How do I enable product search in WooCo...
Get list of terms that have posts in another term
How do I get current post terms? How do you find all terms? How do I find post taxonomy? How do I get post terms in WordPress? What is object ID in WP...