• Resolved Mitko

    (@apendix)


    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!

Viewing 1 replies (of 1 total)
  • Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    Don’t change in core files. After your mentioned code, there have filter hook ‘rtcl_business_hours_display_options’ to modify default option outside of core files. You can do it using child theme.

    add_filter('rtcl_business_hours_display_options', function() {
    $options['header'] = false;

    return $options;
    });

    Thank you

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.