Script for deleting autodrafts, post revisions and trashed posts from multisite & buddypress


1. Backup database first.

2. Create a file in root wordpress directory, with the  code of https://github.com/lenasterg/wordpress-buddypress-multisite-maintainaince/blob/master/clean_unused_posts.php.
3. Did I say BACKUP database first?
4. Run the file  once.
5. Delete the file in order to avoid accidentally use.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s