I need to create an "Empty Trash" button inside my plugin. How would I do it using PHP code?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
You can use To get all posts with the "trash" status:
Then:
|
|||
|
|