This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================ | |
| # WordPress Site Cleanup Script | |
| # Run this on your WordPress server to: | |
| # 1. Backup and remove unused tags | |
| # 2. Close comments on all posts and pages | |
| # 3. Disable pingbacks | |
| # 4. Delete spam comments | |
| # 5. Export 404 URLs from Apache logs | |
| # ============================================================ |