/** * Expires any download stats that are older than the configured number of days * * @return void **/ function clear_stats() { $options = $this->get_options(); if ($options['days'] > 0) { DH_Access::clear($options['days']); } }
/** * Expires any download stats that are older than the configured number of days * * @return void **/ function clear_stats() { $options = get_option('drainhole_options'); if (!isset($options['days'])) { $options['days'] = 60; } if ($options['days'] > 0) { DH_Access::clear($options['days']); } }