Filter
rpress_service_hours_closed_message_next_open
On this page
Filters whether the closed message names the next available time.
Checked in rpress_service_hours_closed_message(), which is attached to rpress_store_closed_message. When true and the engine is enabled, the message gets an added line such as Next available: tomorrow at 09:00. Return false to keep the plain closed message.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | bool | Default true. |
$service_type | string | Service type, or an empty string. |
Return value#
bool. False to keep the plain closed message.
Example#
function my_closed_message_next_open( $show, $service_type ) {
return 'delivery' !== $service_type;
}
add_filter( 'rpress_service_hours_closed_message_next_open', 'my_closed_message_next_open', 10, 2 );
Notes#
The first parameter is a literal true.
Source#
Applied in:
includes/features/slot-engine/functions.php(line 298), inrpress_service_hours_closed_message()
See also#
Was this page helpful?
