Home / posts / Automatically empty trash
  • How to Automatically empty trash

    no thumbnail sorry: Automatically empty trash

    Place this code within the wp-config.php file in the root directory of your wordpress install and it will Automatically empty trash every 3 days.

    ( click code to copy )

    wordpress snippet : PHP

    <>
    define('EMPTY_TRASH_DAYS', 3 );
    

    ( WordPress codex functions, hooks, in this snippet. )