Basketball Terminology
The plugin uses the WordPress gettext filter at priority 20 to remap a set of SportsPress strings to basketball-specific terms.
Label mappings
Default SportsPress | Basketball |
Events | Games |
Event | Game |
Add New Event | Add New Game |
Edit Event | Edit Game |
View Event | View Game |
View all events | View all games |
Venues | Courts |
Venue | Court |
Edit Venue | Edit Court |
Substitute / Substituted | Bench |
The mappings only apply to the sportspress text domain — strings from other plugins or themes are unaffected.
Where the labels appear
Admin menu — "Games" replaces "Events" in the SportsPress menu and submenus
Post type labels — Edit screens, list tables, and Add New buttons
Performance entry — "Bench" replaces "Substitute" in player status dropdowns
Frontend — Headings and section labels on team and player pages where the theme uses the SportsPress text domain
Disabling specific remappings
To keep a specific label as the SportsPress default, register a higher-priority gettext filter:
add_filter( 'gettext', function( $translated, $original, $domain ) {
if ( $domain === 'sportspress' && $original === 'Venues' ) {
return $original;
}
return $translated;
}, 25, 3 );
