Is there a action hook for the Empty Trash button?

Posted by Andre Scott | Updated on

I don’t think there exist one, but you could create your own, wpse_empty_trash, with something like this:

Then you can use it with your code. Example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers