ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:46 PM

Stops WordPress from automatically emptying trash every thirty days.

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' );

?>

Disable Auto Trash

WordPress Snippet