Baseball Terminology
The plugin uses WordPress's gettext filter at priority 20 to remap a set of SportsPress strings to baseball-specific terms. The remapping affects both the WordPress admin and the frontend.
Label mappings
Default SportsPress | Baseball |
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 | Fields |
Venue | Field |
Edit Venue | Edit Field |
Substitute / Substituted | Bench |
Offense | Batting |
Defense | Pitching |
Display squad numbers | Display batting order |
The mappings are applied through the sportspress text domain only — strings from other plugins or themes are not affected.
Where the labels appear
Admin menu — "Games" replaces "Events" in the SportsPress submenu and admin pages
Post type labels — Edit screen titles, list table headers, and the "Add New" button
Frontend — Section headings on team and player pages, calendar layouts, and breadcrumbs (where the active theme uses the SportsPress text domain)
Performance interface — Batting and Pitching sections appear in place of Offense and Defense
Disabling specific remappings
The plugin's gettext filter is registered at priority 20. To unmap a specific label, register a higher-priority filter that returns the original term:
add_filter( 'gettext', function( $translated, $original, $domain ) {
if ( $domain === 'sportspress' && $original === 'Events' ) {
return $original; // keep "Events" instead of "Games"
}
return $translated;
}, 25, 3 );Most users won't need this — the remappings are designed to feel natural for baseball sites.
