How To Delete WordPress Post Revisions Using fuctions.php File

By -

I was recently messing around with my website’s MySQL database, and I did something new and good. I searched around the internet and there is no script on the internet to delete WordPress post revisions using functions.php file, so I created one. Believe me, it’s easy as making milkshake.

Add following code to your theme’s functions.php file and it’ll delete all the post revision:

Note: Please remove this code immediately after saving your functions.php file. You only need to run this code once, there’s no need to keep this code in your theme.

Hope this article helped you. If it helped you then please consider making a small amount of donation. Any amount, even $1.00, is appreciated.

Teen blogger and a huge pro-wrestling fan. Also known for bunch of websites. Formerly worked as a lawn gnome and scare crow.

2 Comments to How To Delete WordPress Post Revisions Using fuctions.php File

Leave a Reply

Although WordPress is mostly secure, a hacker will know his way through it, so here is a compilation of my ways to make it a tough job for him. Improve WordPress Security is a small guide which takes you from all the basic security practices to all the way to the expert methods.