Inventory_Presser_Shortcode_Hours_Today::create_sentence( array $days )

create_sentence


Description Description

Examines the array of $days and generates the sentence, the core feature of this shortcode.


Top ↑

Parameters Parameters

$days

(Required) An array of Inventory_Presser_Business_Day objects


Top ↑

Return Return

(string) A string like "Open today until 5:00pm" or "Closed until 9:00am on Monday"


Top ↑

Source Source

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