Recent

acc_revisions_prune_cutofffilter

acc_revisions_prune_cutoff

Filters the UTC timestamp a revision must predate to be pruned.

A revision is pruned only when it is strictly older than this instant. Null disables the age condition entirely.

Type: filter
Since: 3.2.0
Source: includes/features/class-revisions.php line 384

Parameters

Type Name Description
int|null $cutoff Cutoff timestamp in UTC, or null for no age condition.
int $age_days Age in days the cutoff was derived from.

Usage

add_filter( 'acc_revisions_prune_cutoff', function($cutoff, $age_days) {
    // ...
    return $cutoff;
} );