Skip to Content

business_open_until()

If the business is open, return the time that the business closes today.

PHP April 27, 2017

Usage

PHP
nebula()->business_open_until()

Parameters

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

Source File

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

No Hooks

This function does not have any filters or actions available. Request one?

Note: This function contains 1 to-do comment.

PHP
    public function business_open_until($day){
        //@todo "Nebula" 0: Use null coalescing operator here if possible
        if ( empty($day) ){
            $day = strtolower(date('l'));
        }

        if ( $this->is_business_open() ){
            return esc_html($this->get_option('business_hours_' . $day . '_close'));
        }

        return false;
    }

Override

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