Filters

This is an extensive list of filter hooks available in SportsPress Pro version 1.2 and above.

Frontend Filters

Hook Applied to
sportspress_enqueue_styles Frontend styles.
sportspress_(post_type)_content_priority Default template position of specific post type. Defaults to 10.
sportspress_get_template_part Template parts being loaded.
sportspress_locate_template Found template part before displaying.

(post_type) can be replaced with: event, calendar, team, table, player, list, staff, directory*, or sponsor*.

* Available only to Club or League License holders.

Preset Filters

Hook Applied to
sportspress_get_presets Sports presets in settings dropdown.
sportspress_countries Country options.
sportspress_continents Continent groups in country selectors.
sportspress_formats Post type formats.
sportspress_statuses Status options in dropdowns.
sportspress_dates Date range options in dropdowns.
sportspress_date_format Date format options in dropdowns.
sportspress_time_format Time format options in dropdowns.
sportspress_permalink_slugs Permalink slugs generated by SportsPress.
sportspress_(taxonomy)_object_types Post types to associate with a specific taxonomy.
sportspress_register_post_type_(post_type) Parameters used when registering a specific post type.

(taxonomy) can be replaced with: league, season, venue, or position.

(post_type) can be replaced with: event, calendar, team, table, player, list, staff, directory*, or sponsor*.

* Available only to Club or League License holders.

Conditional Filters

Hook Applied to
is_sportspress Boolean that identifies whether a SportsPress post type is being displayed.
sportspress_post_types Array that identifies SportsPress post types.
sportspress_config_types Array that identifies SportsPress configuration types.
sportspress_screen_ids Array that identifies SportsPress screens.

Settings Filters

Hook Applied to
sportspress_settings_tabs_array Array of settings tabs.
sportspress_get_settings_pages Settings before core tabs are added.
sportspress_get_settings_config_pages Settings after core tabs are added.
sportspress_(tab)_settings Options in a specific settings tab.
sportspress_(post_type)_admin_columns Columns displayed in admin for a specific post type.

(tab) can be replaced with: general, events, teams, players, staff, branding*1, league-menu*1, sponsors*2, text, or configure.

(post_type) can be replaced with: event, calendar, team, table, player, list, staff, directory*2, or sponsor*2.

* 1 Available with any valid SportsPress Pro License.
* 2 Available only to Club or League License holders.

Still need help? Submit a Support Ticket Submit a Support Ticket