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.

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.

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, league-menu, sponsors, text, or configure.

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

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