I was trying the following:

when a product page gets deleted (permanently), it should also delete the:
product gallery and product image which are attached to the post.

I tried the solution i found on:

But it didn’t work out for me.

Read more here: Woocommerce when deleting a product, automatically also delete the product gallery and product image


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , , ,

Wordpress related questions and answers: