action_scheduler_retention_period

action_scheduler_retention_period

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('action_scheduler_retention_period') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php line 51
    		 * Filter the minimum scheduled date age for action deletion.
    		 *
    		 * @param int $retention_period Minimum scheduled age in seconds of the actions to be deleted.
    		 */
    		$lifespan = apply_filters( 'action_scheduler_retention_period', $this->month_in_seconds );
    
    		try {
    			$cutoff = as_get_datetime_object( $lifespan . ' seconds ago' );
    		} catch ( Exception $e ) {
    			_doing_it_wrong(
    				__METHOD__,