Inventory_Presser_Shortcode_Hours_Today::find_next_open_day( array $days )

find_next_open_day


Description Description

Takes an array of days and finds the next day the business has hours. Does not check if the business is still open today. Helps make the jump from Friday to the next open day on Monday.


Top ↑

Parameters Parameters

$days

(array) (Required) An array of Inventory_Presser_Business_Day objects


Top ↑

Return Return

(Inventory_Presser_Business_Day) The next day that has open hours