Skip to Content
Menu

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?

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

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

    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?