Can I disable the ‘header’ in Business Hours settings from the admin panel?
-
Hello,
I see that I can change theheader
option by editing the file:classified-listing\app\Controllers\BusinessHoursController.php
$defaults = [
'header' => false,
'footer' => false,
'day_name' => 'full', // Valid options are 'full', 'abbrev' or 'initial'.
'show_closed_day' => true,
'show_closed_period' => true,
'show_open_status' => true,
'highlight_open_period' => true,
'open_close_separator' => '–',
'open_text' => esc_html__( 'Open', 'classified-listing' ),
'close_text' => esc_html__( 'Close', 'classified-listing' ),
'open_today_text' => esc_html__( 'Open Today (24 Hours)', 'classified-listing' ),
'closed_today_text' => esc_html__( 'Closed Today', 'classified-listing' ), // Modified by Rashid
'open_status_text' => esc_html__( 'We are currently open.', 'classified-listing' ),
'close_status_text' => esc_html__( 'Sorry, we are currently closed.', 'classified-listing' )
];However, I want to avoid losing these settings after a plugin update. Is there a way to disable the
header
option directly from the admin panel or via a filter or action hook?
Kind Regards!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Can I disable the ‘header’ in Business Hours settings from the admin panel?’ is closed to new replies.