Inventory_Presser_Shortcode_Hours_Today::create_sentence( array $days )
create_sentence
Contents
Description Description
Examines the array of $days and generates the sentence, the core feature of this shortcode.
Parameters Parameters
- $days
-
(array) (Required) An array of Inventory_Presser_Business_Day objects
Return Return
(string) A string like "Open today until 5:00pm" or "Closed until 9:00am on Monday"