Can I disable the ‘header’ in Business Hours settings from the admin panel?

[ad_1]

Hello,

I see that I can change the header 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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer