action_scheduler_retention_period

action_scheduler_retention_period

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('action_scheduler_retention_period') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_QueueCleaner.php line 61
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    * 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__,