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
| Parameter | Type | Description |
|---|---|---|
$hour | int | The hour of the day from 0 to 23 |
Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced |
Usage Example
add_filter('sequra_migration_from', function( $hour ){
return 2; // Set the time to 2AM.
});Updated 5 months ago