sequra_migration_to
Hook
Filter
Set an ending time to run database migrations
Description
This filter allows overriding the ending 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_to', function( $hour ){
return 6; // Set the time to 6AM.
});
Updated 18 days ago