Title: Golf Handicap &amp; Slope
Author: Gudjon Gudjonsson
Published: <strong>2025-06-18</strong>
Last modified: 2026-09-25

---

Szukaj wtyczek

![](https://ps.w.org/golf-handicap-slope/assets/banner-772x250.png?rev=3592921)

![](https://ps.w.org/golf-handicap-slope/assets/icon-256x256.png?rev=3592921)

# Golf Handicap & Slope

 Autor: [Gudjon Gudjonsson](https://profiles.wordpress.org/gudjon/)

[Pobierz](https://downloads.wordpress.org/plugin/golf-handicap-slope.2.3.0.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/golf-handicap-slope/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/golf-handicap-slope/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/golf-handicap-slope/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/golf-handicap-slope/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/golf-handicap-slope/)

## Opis

Golf Handicap & Slope is a WordPress plugin that allows golf clubs to offer a useful
course handicap calculator and complete handicap tables on their websites.

The plugin uses the official formula from the World Handicap System (WHS) to calculate
course handicap:
 Course Handicap = (Handicap Index × Slope Rating ÷ 113) + (Course
Rating – Par)

#### Main Features

 * **Course Handicap Calculator** – Allows users to easily calculate their course
   handicap by selecting a tee and entering their handicap index.
 * **Handicap Tables** – Displays complete tables with course handicaps for all 
   handicap indexes for each tee.
 * **Scorecard with stroke allocation** – Enter par, stroke index and length per
   hole; the scorecard shows, hole by hole, where the player gets strokes for the
   calculated course handicap.
 * **Simple Admin Interface** – Add, edit, and organize tees with a user-friendly
   administration interface.
 * **Customizable Design** – Customize colors and appearance to match your WordPress
   site.
 * **Responsive Design** – Works perfectly on all devices, from desktop to mobile.
 * **Simple Shortcodes** – Use simple shortcodes to display the calculator and tables
   anywhere on your website.
 * **Multilingual Support** – The plugin is translated into English, Norwegian, 
   and Icelandic, and can be translated into more languages.

#### Shortcodes

 * `[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

#### More Information and Demo

Visit [slope.no](https://slope.no) for more information and a live demo of the plugin.
An English version is also available at [slope.no/en](https://slope.no/en).

## Zrzuty ekranu

[⌊Course Handicap Calculator - Allows users to easily calculate their course handicap.⌉⌊
Course Handicap Calculator - Allows users to easily calculate their course handicap
.⌉[

Course Handicap Calculator – Allows users to easily calculate their course handicap.

[⌊Handicap Tables - Displays complete tables with course handicaps for all tees.⌉⌊
Handicap Tables - Displays complete tables with course handicaps for all tees.⌉[

Handicap Tables – Displays complete tables with course handicaps for all tees.

[⌊Admin Interface - Clear administration panel for the plugin.⌉⌊Admin Interface -
Clear administration panel for the plugin.⌉[

Admin Interface – Clear administration panel for the plugin.

[⌊Tee Management - Add, edit, and organize tees.⌉⌊Tee Management - Add, edit, and
organize tees.⌉[

Tee Management – Add, edit, and organize tees.

[⌊Settings - Customize colors and appearance to match your WordPress site.⌉⌊Settings-
Customize colors and appearance to match your WordPress site.⌉[

Settings – Customize colors and appearance to match your WordPress site.

[⌊Scorecard - Next to the calculator: type your handicap, pick a tee, and see the
holes where you get strokes.⌉⌊Scorecard - Next to the calculator: type your handicap,
pick a tee, and see the holes where you get strokes.⌉[

Scorecard – Next to the calculator: type your handicap, pick a tee, and see the 
holes where you get strokes.

[⌊Scorecard admin - Enter par, stroke index and length for the 18 holes of each 
tee.⌉⌊Scorecard admin - Enter par, stroke index and length for the 18 holes of each
tee.⌉[

Scorecard admin – Enter par, stroke index and length for the 18 holes of each tee.

## Instalacja

 1. Download and install the plugin via the WordPress dashboard or by uploading the
    files manually to the plugins folder.
 2. Activate the plugin through the 'Plugins’ menu in WordPress.
 3. Go to „Golf Handicap & Slope” > „Tee Management” to add tees.
 4. Configure tees for your golf course with Slope Rating, Course Rating, and Par.
 5. Go to „Golf Handicap & Slope” > „Settings” to customize the appearance.
 6. Use shortcodes to display the calculator and tables on your website:
 7.  * `[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)

## Najczęściej zadawane pytania

### Is the plugin compatible with my WordPress version?

Golf Handicap & Slope requires WordPress 5.6 or newer and PHP 7.0 or newer.

### Can I customize the appearance to match my website?

Yes, you can choose to use the plugin default colors or define your own custom colors
in the settings.

### How many tees can I add?

There is no limit to the number of tees you can add.

### Does the plugin follow the World Handicap System (WHS)?

Yes, the plugin uses the official formula from WHS to calculate course handicap.

### How do I show the scorecard with strokes per hole?

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.

### Can I display only selected tees in the tables?

Yes, you can use the shortcode [golfhs_tables tees=”1,2,3″] to display only specific
tees.

### Is the plugin translated into other languages?

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.

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„Golf Handicap & Slope” jest oprogramowaniem open source. Poniższe osoby miały wkład
w rozwój wtyczki.

Zaangażowani

 *   [ Gudjon Gudjonsson ](https://profiles.wordpress.org/gudjon/)

[Przetłumacz wtyczkę “Golf Handicap & Slope” na swój język.](https://translate.wordpress.org/projects/wp-plugins/golf-handicap-slope)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/golf-handicap-slope/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/golf-handicap-slope/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/golf-handicap-slope/)
przez [RSS](https://plugins.trac.wordpress.org/log/golf-handicap-slope/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 2.3.0

 * Added: Scorecard. Enter par, stroke index and length for the 18 holes of each
   tee (Golf Handicap & Slope > Scorecard, with „copy from” between tees and validation
   of pars and stroke indexes). The new `[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.
 * Added: `[golfhs_calculator label="…"]` to change the label on the handicap field.
 * Added: Tees with incomplete hole data are never shown to visitors; administrators
   see a note listing them.
 * Changed: Database version 1.2.0 (new holes table, created automatically on update).

#### 2.2.4

 * Changed: The calculator now updates automatically while you type and when you
   change tee – no need to press a button. The „Calculate” button is gone by default;
   enable it under Settings if you want it (it then lines up with the input fields).
 * Added: A `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.
 * Accessibility: The result box announces changes to screen readers (aria-live).
 * Fixed: The label sat right on top of the input, so the focus ring covered its
   descenders in some themes; inputs taller than 38px overflowed their wrapper.

#### 2.2.3

 * Fixed: The course rating / slope / par values in the tee rows could run together
   without spacing in narrow content columns (e.g. next to a sidebar). They now 
   keep a gap and wrap when needed.
 * Fixed: Tee names such as „Herrer, tee 64” could wrap onto two lines in the green
   label; the label now grows with the name.

#### 2.2.2

 * Changed: Tee rows in the tables now show „Course rating 72.4 · Slope rating 128·
   Par 72” using the site’s locale for decimals (e.g. 72,4 in Norwegian) and without
   trademark symbols. Tee headings and the calculator’s tee dropdown now use one
   translatable format („Men – Yellow”).
 * i18n (Norwegian): consistent terminology throughout – „handicap” (not „handikap”),„
   spillehandicap” for course handicap, „handicapindeks”, „utslag” for tee, „herrer/
   damer” for men/women; shorter, plainer validation messages.

#### 2.2.1

 * i18n: the result help texts now use English source strings (were Norwegian), 
   with proper Norwegian translations added. No functional change.

#### 2.2.0

 * Fixed: Calculator showed the wrong sign for plus handicaps on harder tees (the
   playing handicap was incorrectly negated). Calculator and tables now always agree.
 * Fixed: A „+” entered for a plus handicap was stripped by the number field and
   treated as a regular handicap. Plus and minus are now treated the same (both 
   mean a plus handicap).
 * Changed: Course handicap is now shown with its natural sign — a positive value
   means you receive strokes, a negative value means you must give strokes (play
   under par).
 * New: Plain-language helper text under the result explaining what the number means,
   plus a color hint (green when you receive strokes, amber when you must give strokes).
 * Improved: PHP table and JavaScript calculator now use identical rounding (half
   up), so they never disagree.

#### 2.1.9

 * Fixed: Admin color preview now updates correctly when changing colors (wpColorPicker
   change event used ui.color directly instead of unreliable .val() read)
 * Fixed: Removed console.log statements from production JavaScript (WordPress.org
   compliance)
 * Fixed: Deleted unused golf-handicap-slope-tee-sortering.js that caused duplicate
   AJAX requests on tee move
 * Fixed: Wrong CSS handle 'golf-handicap-slope-style’ corrected to 'golf-handicap-
   slope’ — custom table colors now apply correctly
 * Fixed: Database error details no longer exposed to browser client; logged server-
   side only
 * Fixed: WP_Error return value now handled correctly in handle_add_tee()
 * Fixed: All admin error messages are now translatable via i18n functions
 * Fixed: Broken 'Tee Management’ link on main admin page (wrong page slug)
 * Fixed: Inline style block in settings template removed; wp_add_inline_style()
   used instead
 * Fixed: Removed hardcoded WHS course-specific lookup table — calculator now uses
   standard formula for all courses
 * Fixed: Removed adjustParentContainerHeight() that modified theme block element
   padding/margin
 * Fixed: Dead code hexToRgb() removed from settings.js
 * Fixed: Consistent use of $this->table_name throughout tee manager
 * Fixed: $_GET[’action’] usage replaced to avoid WordPress reserved parameter conflict
 * Fixed: Plugin classes now initialized via plugins_loaded hook
 * Added: uninstall.php for proper cleanup of database table and options on plugin
   deletion

#### 2.1.8

 * Fixed: Critical bug where calculator failed due to incorrect data access (object
   vs array notation for tee data)
 * Fixed: Wrong option key for plugin settings caused default colors to always be
   used
 * Fixed: JavaScript referenced non-existent DOM IDs, breaking calculator functionality
 * Fixed: Activation migration never ran because version was updated before version
   check
 * Fixed: esc_html() on CSS in wp_add_inline_style() broke dynamic color styling
 * Fixed: Consolidated duplicate wp_localize_script calls for golfhs_data
 * Fixed: Custom colors from admin settings not applied on frontend (CSS variable
   override)
 * Fixed: Admin preview not reflecting custom color choices (CSS variables instead
   of hardcoded colors)
 * Fixed: „Use Theme Colors” checkbox was misleading — renamed to „Use Plugin Default
   Colors”
 * Fixed: table_columns setting not saving due to strict type comparison (string
   vs integer)
 * Fixed: Inline CSS injection in shortcode conflicted with theme color toggle
 * Fixed: Standardized default color to #1e73be across all files
 * Fixed: Hardcoded version strings replaced with GOLFHS_VERSION constant
 * Fixed: Hardcoded Norwegian strings in admin JS now use localized strings
 * Removed: Unused dead code (duplicate calculator JS file, unused PHP method)
 * Improved: Reordered tee form fields — Course Rating now appears before Slope 
   Rating
 * Improved: Full WordPress Coding Standards compliance (PHPCS)
 * Improved: Cleaner JavaScript without unnecessary desktop/mobile DOM splitting
 * Improved: All admin JS strings now internationalized via wp_localize_script
 * Improved: Removed all debug console.log statements from production code
 * Improved: Updated Norwegian translations for new UI text
 * Improved: Regenerated .l10n.php translation cache for WordPress 6.5+ compatibility
 * Security: Added wp_strip_all_tags() to all wp_add_inline_style() calls

#### 2.1.5

 * Fixed: Added missing translations for calculator labels („Your handicap”, „Which
   tee?”, „Course handicap:”)

#### 2.1.4

 * Fixed: Norwegian translation not loading – restored load_plugin_textdomain() 
   function

#### 2.1.3

 * Fixed: Removed all inline CSS styles and style blocks per WordPress.org coding
   standards
 * Fixed: Properly enqueued all CSS using wp_enqueue_style()
 * Fixed: Dynamic colors now injected via wp_add_inline_style()
 * Improved: All styles moved to external CSS file golf-handicap-slope-frontend.
   css
 * Improved: Updated element IDs in calculator template to match JavaScript expectations
 * Improved: Added CSS classes to replace inline display:none attributes
 * Improved: Full compliance with WordPress coding standards (PHPCS clean)

#### 2.1.2

 * Fixed: Properly escaped all wp_add_inline_style() calls for security compliance
 * Fixed: Removed unnecessary load_plugin_textdomain() call as per WordPress 4.6
   + guidelines
 * Fixed: Renamed JavaScript objects to use golfhs_ prefix for better namespace 
   compliance
 * Fixed: Calculator display bug showing incorrect allocated strokes
 * Improved: Mobile responsive layout – input fields now stack vertically on small
   screens
 * Removed: All debug console.log statements for production readiness
 * Updated: Contributors list to comply with WordPress.org requirements

#### 2.1.1

 * Added translations for all texts in admin and frontend
 * Improved mobile view for tables – always one column on mobile devices
 * Updated plugin name from „WP Slopekalkulator” to „Golf Handicap & Slope”
 * Improved responsive design
 * Added support for theme colors
 * Various bug fixes and performance improvements

#### 2.0.0

 * New feature: Customizable colors
 * Improved administration interface
 * Added drag-and-drop for tee ordering
 * New feature: Adjustable number of columns for table display
 * Improved formula for course handicap according to WHS
 * Added support for plus handicaps

#### 1.0.0

 * First public version
 * Basic course handicap calculator
 * Display of handicap tables
 * Management of tees

## Meta

 *  Wersja **2.3.0**
 *  Ostatnia aktualizacja **1 miesiąc temu**
 *  Włączone instalacje **10+**
 *  Wersja WordPressa ** 5.6 lub nowszej **
 *  Testowano do **7.0.8**
 *  Wersja PHP ** 7.0 lub nowszej **
 *  Język
 * [English (US)](https://wordpress.org/plugins/golf-handicap-slope/)
 * Tagi
 * [calculator](https://pl.wordpress.org/plugins/tags/calculator/)[golf](https://pl.wordpress.org/plugins/tags/golf/)
   [handicap](https://pl.wordpress.org/plugins/tags/handicap/)[slope](https://pl.wordpress.org/plugins/tags/slope/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/golf-handicap-slope/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

[Twoja opinia](https://wordpress.org/support/plugin/golf-handicap-slope/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/golf-handicap-slope/reviews/)

## Zaangażowani

 *   [ Gudjon Gudjonsson ](https://profiles.wordpress.org/gudjon/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/golf-handicap-slope/)