Filter
rpress_reminder_current_time
On this page
Filters the current Unix time used by the order reminder system.
Runs in rpress_reminder_now(), which supplies the clock for deciding whether a reminder is due. It exists so tests can move the clock.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | int | Current Unix timestamp. |
Return value#
int. Unix timestamp to treat as now.
Example#
function my_reminder_now( $now ) {
return $now + 600;
}
add_filter( 'rpress_reminder_current_time', 'my_reminder_now' );
Notes#
Intended for tests; do not shift the clock on a live store.
Source#
Applied in:
includes/features/reminder-emails/functions.php(line 103), inrpress_reminder_now()
Was this page helpful?
