I need a php script that will be triggered by cron job. This script needs to delete worpdress posts that are X days old and from specific category from wordpress database.
I need to have it flexible, so it would:
1. delete posts that are X days old
2. delete from category Y
3. can connect do any database - make the database info (username, host, database name, password,....) editable
I need this for wordpress 3.1 and above
if you have any questions please let me know