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.<br>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

(Required) An array of Inventory_Presser_Business_Day objects


Top ↑

Return Return

(Inventory_Presser_Business_Day) The next day that has open hours


Top ↑

Source Source

File: includes/shortcode/class-shortcode-hours-today.php