action_scheduler_retention_period

action_scheduler_retention_period

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.4.1.1

apply_filters('action_scheduler_retention_period') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php line 33
    		$this->batch_size = $batch_size;
    	}
    
    	public function delete_old_actions() {
    		$lifespan = apply_filters( 'action_scheduler_retention_period', $this->month_in_seconds );
    		$cutoff = as_get_datetime_object($lifespan.' seconds ago');
    
    		$statuses_to_purge = array(
    			ActionScheduler_Store::STATUS_COMPLETE,
    			ActionScheduler_Store::STATUS_CANCELED,
    		);