Created
March 25, 2015 06:20
-
-
Save bryceadams/5d72de46666b64ef3229 to your computer and use it in GitHub Desktop.
Stop WordPress auto-emptying the trash
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
function my_remove_schedule_delete() { | |
remove_action( 'wp_scheduled_delete', 'wp_scheduled_delete' ); | |
} | |
add_action( 'init', 'my_remove_schedule_delete' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment