Filter
rpress_use_service_hours_engine
On this page
Filters whether the service hours engine handles open and slot checks.
Read by rpress_service_hours_engine_enabled(). When true, rpress_is_store_open() and rp_get_store_timings() delegate to the RPRESS_Service_Hours engine. The default is true when the core basic store hours are active and false when the Store Timing extension owns the schedule. Return false to use the legacy code path.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$default | bool | Default: true unless an extension owns the schedule. |
Return value#
bool. True to use the service hours engine.
Example#
function my_use_service_hours_engine( $use_engine ) {
return false;
}
add_filter( 'rpress_use_service_hours_engine', 'my_use_service_hours_engine' );
Notes#
Switching it affects the output shapes used by extensions that filter the legacy functions.
Source#
Applied in:
includes/features/slot-engine/functions.php(line 30), inrpress_service_hours_engine_enabled()
See also#
Was this page helpful?
