| 开发者 | gudjon |
|---|---|
| 更新时间 | 2026年9月25日 23:31 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[golfhs_calculator] - Displays the course handicap calculator[golfhs_tables] - Displays tables with course handicap for all tees[golfhs_tables tees="1,2,3"] - Displays tables for specific tees (specify IDs)[golfhs_scorecard] - Displays the scorecard (par, stroke index, length) for every tee with complete hole data. Placed below the calculator it marks, hole by hole, where the player gets strokes.[golfhs_scorecard tees="1,2" length="no"] - Scorecard for specific tees, without the length row[golfhs_calculator label="What is your handicap?"] - Calculator with your own label on the handicap field[golfhs_calculator] - Displays the course handicap calculator[golfhs_tables] - Displays tables with course handicap for all tees[golfhs_tables tees="1,2,3"] - Displays tables for specific tees (specify IDs)Golf Handicap & Slope requires WordPress 5.6 or newer and PHP 7.0 or newer.
Yes, you can choose to use the plugin default colors or define your own custom colors in the settings.
There is no limit to the number of tees you can add.
Yes, the plugin uses the official formula from WHS to calculate course handicap.
Go to "Golf Handicap & Slope" > "Scorecard" and enter par, stroke index and (optionally) length for the 18 holes of each tee. Then place [golfhs_scorecard] on the same page as [golfhs_calculator]. The calculator's tee dropdown is then replaced by the scorecard's tee tabs: the player types a handicap, clicks a tee and sees the course handicap and the holes with strokes. Only tees with all 18 holes filled in are shown; administrators see a note about tees that are missing data.
Yes, you can use the shortcode [golfhs_tables tees="1,2,3"] to display only specific tees.
Yes, the plugin is now available in English, Norwegian, and Icelandic. It automatically follows the WordPress language, as long as it is translated. If you would like to contribute with translations to other languages, please contact the plugin author.
[golfhs_scorecard] shortcode shows the scorecard for every tee with complete hole data, with tabs between tees. On the same page as the calculator the tabs replace the tee dropdown, and the scorecard marks, hole by hole, where the player gets (or gives) strokes and explains it in one sentence.[golfhs_calculator label="…"] to change the label on the handicap field.golfhs:result event (with playing handicap, handicap index and tee data) and a golfhs:clear event are dispatched on document, so themes can react to the result – for example to show which holes you get strokes on.