Skip to content

Commit 342662d

Browse files
authored
Update disable-empty-trash.php
1 parent a5a9eef commit 342662d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

disable-empty-trash.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,28 @@
22
/*
33
Plugin Name: Disable Empty Trash
44
Plugin URI: https://www.littlebizzy.com/plugins/disable-empty-trash
5-
Description: Completely disables the automatic trash empty for WordPress posts, custom posts, pages, and comments to avoid data loss and encourage manual emptying.
6-
Version: 1.0.0
5+
Description: Stops WordPress emptying trash
6+
Version: 1.1.0
77
Author: LittleBizzy
88
Author URI: https://www.littlebizzy.com
99
License: GPL3
1010
License URI: https://www.gnu.org/licenses/gpl-3.0.html
11+
GitHub Plugin URI: littlebizzy/disable-empty-trash
12+
Primary Branch: master
13+
Prefix: DETTRS
1114
*/
1215

16+
// disable wordpress.org updates
17+
add_filter(
18+
'gu_override_dot_org',
19+
function ( $overrides ) {
20+
return array_merge(
21+
$overrides,
22+
array( 'disable-empty-trash/disable-empty-trash.php' )
23+
);
24+
}
25+
);
26+
1327

1428
/**
1529
* Define main plugin class

0 commit comments

Comments
 (0)