Stops WordPress from automatically emptying trash every thirty days.
<?php
function ccd_remove_schedule_delete() {
remove_action( 'wp_scheduled_delete', 'wp_scheduled_delete' );
}
add_action( 'init', 'ccd_remove_schedule_delete' );
?>
WordPress Snippet