openingHoursSpecification for search engines.
Formerly known as "Taro Open Hour".
Who is it for?
Settings > Business Places.[open-hour] and [business-place], also usable in block themes.[open-hour] for the time table. If you are a theme developer,
just use the tsoh_the_timetable() function.
For business places, you can use [business-place post_id='10'].
The attribute post_id can be omitted and its default value is the current post.
Acknowledgements
/wp-content/plugins/taro-open-hour directory, or install the plugin through the WordPress plugins screen directly.Settings > Business Places and set it up.Block themes have no widget areas. Add a Shortcode block and enter [open-hour] for the time table or [business-place] for the place information. Both accept the post_id attribute (default: the current post), e.g. [business-place post_id='10'].
Settings > Business Places and choose "○" as the open mark and "×" (or a custom text such as "/") as the closed mark.9:00–12:00 and 14:00–18:00.[open-hour] shortcode) where you want the table.The JSON-LD uses the "Business Type" field of each place's location settings as @type.
Choose a schema.org LocalBusiness subtype such as MedicalClinic, Dentist, HairSalon, Restaurant or Store; common types are suggested as you type.
If the field is empty, LocalBusiness is used. Developers can change the default with the tsoh_default_local_business_type filter (and the final value with tsoh_local_business_type).
Please create an issue on GitHub.
edit_posts capability and return only necessary fields.tsoh_is_open(). tsoh_current_time_condition() is deprecated.template-part/tsoh/time-table.php was not detected.$timestamp arguments of tsoh_get_timetable(), tsoh_is_open() and [open-hour] are now real Unix timestamps (wp_date() is used).https://schema.org.loading="lazy"business-place.