Cricket Terminology
The plugin uses the WordPress gettext filter at priority 20 to remap SportsPress strings to cricket-specific terms.
Label mappings
Default SportsPress | Cricket |
Events | Matches |
Event | Match |
Add New Event | Add New Match |
Edit Event | Edit Match |
View Event | View Match |
View all events | View all matches |
Substitute / Substituted | Did Not Bat |
Offense | Batting |
Defense | Bowling |
The mappings apply only to the sportspress text domain.
Where the labels appear
Admin menu — "Matches" replaces "Events" in the SportsPress submenu
Post type labels — Edit screens, list tables, and Add New buttons
Performance entry — Batting and Bowling sections replace Offense and Defense; "Did Not Bat" replaces "Substitute" in the player status dropdown
Frontend — Section headings on team and player pages
Did Not Bat handling
The plugin does more than relabel "Substitute" to "Did Not Bat" — it also displays DNB players separately after the main performance table via sportspress_after_event_performance_table. This matches cricket scorecard convention where unused batters are listed below the active line-up.
See Sport features for details on the rendering logic.
