$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>wp admin - How to change how long items are kept in the trash?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

wp admin - How to change how long items are kept in the trash?

matteradmin12PV0评论

When the trash feature is enabled, the deleted posts are moved to trash and stored there for 30 days. And there is a schedule/wp_cron event that is responsible for removing these posts permanently after that time.

Is there any easy way to change that time?

When the trash feature is enabled, the deleted posts are moved to trash and stored there for 30 days. And there is a schedule/wp_cron event that is responsible for removing these posts permanently after that time.

Is there any easy way to change that time?

Share Improve this question edited Feb 12, 2019 at 7:58 Krzysiek Dróżdż asked Feb 6, 2019 at 18:40 Krzysiek DróżdżKrzysiek Dróżdż 25.6k9 gold badges53 silver badges74 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 5

You can change that in wp-config (https://codex.wordpress/Editing_wp-config.php#Empty_Trash):

define( 'EMPTY_TRASH_DAYS', 1 ); // Integer is the amount of days
Post a comment

comment list (0)

  1. No comments so far