Inventory_Presser_Shortcode_Hours_Today::find_next_open_day( array $days )
find_next_open_day
Contents
Description Description
Takes an array of days and finds the next day the business has hours.<br>Does not check if the business is still open today. Helps make the jump from Friday to the next open day on Monday.
Parameters Parameters
- $days
-
(Required) An array of Inventory_Presser_Business_Day objects
Return Return
(Inventory_Presser_Business_Day) The next day that has open hours
Source Source
File: includes/shortcode/class-shortcode-hours-today.php
Expand full source code Collapse full source code View on Github