sequra_migration_from

Hook Filter

Set a starting time to run database migrations

Description

This filter allows overriding the starting time (hour value) to run database migrations.

Parameters

ParameterTypeDescription
$hourintThe hour of the day from 0 to 23

Changelog

VersionDescription
3.2.0Introduced

Usage Example

add_filter('sequra_migration_from', function( $hour ){
 return 2; // Set the time to 2AM.
});