Skip to Content

has_business_hours()

Check if business hours Nebula option has data.

PHP April 27, 2017

Usage

PHP
nebula()->has_business_hours()

Parameters

This function does not accept any parameters. Is this incorrect?

Source File

Located in /libs/Functions.php on line 1829.

No Hooks

This function does not have any filters or actions available. Request one?
PHP
    public function has_business_hours(){
        foreach ( array('sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday') as $weekday ){
            if ( $this->get_option('business_hours_' . $weekday . '_enabled') || $this->get_option('business_hours_' . $weekday . '_open') || $this->get_option('business_hours_' . $weekday . '_close') ){
                return true;
            }
        }
        return false;
    }

Override

This function can not be short-circuited with an override filter. Request one?