action_scheduler_default_cleaner_statuses

action_scheduler_default_cleaner_statuses

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('action_scheduler_default_cleaner_statuses') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php line 74
    		 * Filter the statuses when cleaning the queue.
    		 *
    		 * @param string[] $default_statuses_to_purge Action statuses to clean.
    		 */
    		$statuses_to_purge = (array) apply_filters( 'action_scheduler_default_cleaner_statuses', $this->default_statuses_to_purge );
    
    		return $this->clean_actions( $statuses_to_purge, $cutoff, $this->get_batch_size() );
    	}
    
    	/**
    	 * Delete selected actions limited by status and date.