Simply paste the following snippet in your functions.php file and you will be able to delete post revision.
1 2 3 4 | $wpdb->query( " DELETE FROM $wpdb->posts WHERE post_type = 'revision' " ); |
Snippet Source/Credit: Hardeep Asrani
Simply paste the following snippet in your functions.php file and you will be able to delete post revision.
1 2 3 4 | $wpdb->query( " DELETE FROM $wpdb->posts WHERE post_type = 'revision' " ); |
Snippet Source/Credit: Hardeep Asrani