| 开发者 | hajimebaba |
|---|---|
| 更新时间 | 2026年10月27日 07:40 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[business_day_calendar] to any page, post or widget. Colors and legend text can be changed.[business_day_calendar] - this month, with previous / next month links[business_day_calendar months="3"] - several months[business_day_calendar month="2027-01"] - a fixed month[business_day_calendar nav="no" legend="no"] - hide the month links and the legend[business_day_today] - a line such as "Today (10/21 Wed) is a business day." It stays correct on pages kept by a page cache, because a small script picks today's entry in the site time zone.[business_hours] - business hours and regular closing days, for example "Mon-Fri: 9:30 - 18:30" and "Sunday, 2nd Monday, Public holidays". Use closed="no" to hide the closing days.bdcjp_holidays lets you add, remove or rename public holidays for a year (for example after a change of the law). It receives an array of 'Y-m-d' => 'name' and the year.
nacose-business-day-calendar folder to /wp-content/plugins/, or install the plugin from the Plugins screen.[business_day_calendar] in a page.Public holidays are calculated for 2000-2099.
No. Holidays are calculated inside the plugin, and the plugin makes no external requests.
If a page cache plugin is used, the cached page can show yesterday's mark until the cache is refreshed. The closing days themselves are not affected. The [business_day_today] line is not affected, because it is updated in the browser.
Use the bdcjp_holidays filter to correct it, and please report it in the support forum.
[business_hours] shortcode, and hours in the [business_day_today] text.[business_day_today] shortcode.