This plugin uses Setting API to add a setting in the WordPress setting at Settings > General, this option allow you to select the days that WordPress take to empty trash. The code used for this plugin is: Where $cmrtrashtime is the time in days. A brief Markdown Example Ordered list: Allow to select the days that WordPress take to empty trash. Unordered list: Allow to select the days that WordPress take to empty trash.