Golf Feeling Score (wp-golf-score) - WordPress Plugin

Calculate Golf Feeling Score depends on weather forecast and Season.
Script periodically sets css class for elements with attribute data-day

Example:

Show Golf Feeling Score - full config short-code

# syntax
[wp-golf-score lat=float lon=float [class=string] [date=boolean] [days=int]]
# minimal
[wp-golf-score lat=50.2 lon=14.678]
# full
[wp-golf-score lat=50.2 lon=14.678 class="header" href="https://example.com" date=false days=3]

parameters:

  • lat/lon: geo coordinates of forecasted place
  • days: 1-3 calculate score for n following days (include today)
  • date: true/false include date
  • any other html attributes. When href attribute is used, tag will be rendered as anchor

Build CSS

sass src/golf-score.scss:static/golf-score.css

Update dependencies

npm install

Compile JS

pnpm run build

Create plugin archive

./compress.sh