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
-
(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"
Source Source
File: includes/shortcode/class-shortcode-hours-today.php
Expand full source code Collapse full source code View on Github