Skip to main content

Football (Soccer) Sport Features

The plugin's main feature beyond terminology is its handling of own goals — a soccer-specific scoring convention where a goal scored by a player into their own team's net counts for the opposition.

Updated today

Football (Soccer) Sport Features

The plugin's main feature beyond terminology is its handling of own goals — a soccer-specific scoring convention where a goal scored by a player into their own team's net counts for the opposition.

Own Goals performance type

On activation the plugin creates an Own Goals performance post in the SportsPress performance taxonomy. This is a normal SportsPress performance type, but with three behaviours customised:

Behaviour

How it's implemented

Hidden from the standard box score

sportspress_event_box_score_labels filter removes the OG column

Hidden from match stats charts

sportspress_match_stats_labels filter removes the OG row

Appended to player goal totals on team performance

sportspress_event_performance_players filter (priority 10) re-inserts the value alongside scoring goals

Effectively, recording an own goal:

  • Counts toward the opposing team's score in the box score

  • Does not appear as a separate row alongside Goals, Yellow Cards, etc. in the box score (visually it is rolled into the scoring summary)

  • Still appears in the player's individual statistics so the act of scoring an own goal can be tracked over a season

Recording an own goal

  1. Edit the match.

  2. In the player performance table, find the player who scored the own goal (a member of the team that conceded).

  3. Enter 1 in the Own Goals column.

  4. Save.

The opposing team's goal total automatically increases by 1.

OG label

The plugin adds "OG" to the SportsPress text options table via sportspress_text. This is the abbreviation used in the player performance table header. To localise or change the label, go to SportsPress → Settings → Text and edit the "OG" entry.

What the plugin does NOT add

  • No widgets, shortcodes, or template sections

  • No settings page

  • No partial-statistic conversion

  • No live scoring support — match performance is entered post-match through the standard SportsPress flow

Did this answer your question?