Live Scores for SportsPress 1.9.2 has 19 actions and 27 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Live Scores for SportsPress fires an action
add_action( 'integration_save', function( $_POST ) {
// Your code runs here.
}, 10, 1 );
// Change a value Live Scores for SportsPress is about to use
add_filter( 'sportspress_event_time', function( $time, $ID ) {
// Change $time here.
return $time;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
apply_filters( 'sportspress_event_time', sp_get_time( $event ), $event->ID ); -
apply_filters( 'lsfs_live_event_list_main_results', $main_results, $event_id ); -
apply_filters( "lsfs_settings_fields_{$this->settings_id}", array() ); -
apply_filters( 'sportspress_event_list_main_results', sp_get_main_results( $event_id ), $event_id ); -
do_action( 'integration_save', $_POST ); -
do_action( "integration_save_{$this->settings_id}" ); -
do_action( 'live_scores_for_sportspress_loaded' ); -
do_action( "lsfs_{$integration}_integration_activated" ); -
do_action( "lsfs_{$integration}_integration_deactivated" ); -
do_action( "lsfs_{$this->settings_id}_integration_activated" ); -
do_action( "lsfs_{$this->settings_id}_integration_deactivated" ); -
do_action( 'lsfs_after_template', $template_name, $template_path, $located, $args ); -
apply_filters( 'lsfs_ajax_event_results', null, $_GET['list'] ); -
apply_filters( 'lsfs_ajax_scorer_added', $output, $data ); -
do_action( 'lsfs_before_template', $template_name, $template_path, $located, $args ); -
apply_filters( 'lsfs_calendar_shortcodes', array( 'list' => __( 'Live List', 'live-scores-for-sportspress' ), 'blocks' => __( 'Live Box Score', 'live-scores-for-sportspress' ), ) ); -
apply_filters( 'lsfs_configuration', array( 'soccer' => array( array( 'type' => 'live', 'title' => __( '1st Half', 'live-scores-for-sportspress' ), 'menu_order' => 1, 'conf' => array( 'duration' => '45', 'stoppage' => '1', 'text_after_minutes' => 'text', 'text_after' => __( 'Half Time', 'live-scores-for-sportspress' ), ), ), array( 'type' => 'live', 'title' => __( '2nd Half', 'live-scores-for-sportspress' ), 'menu_order' => 2, 'co... ); -
apply_filters( 'lsfs_event_log_prepare', $log ); -
apply_filters( 'lsfs_event_options', array( array( 'title' => __( 'Live Status', 'live-scores-for-sportspress' ), 'desc' => __( 'Show the status such as minutes, half time etc. next to live results', 'live-scores-for-sportspress' ), 'id' => 'lsfs_show_status', 'default' => 'yes', 'type' => 'checkbox', ), ) ); -
do_action( 'lsfs_fs_loaded' ); -
apply_filters( 'lsfs_general_options', array( array( 'title' => __( 'Refresh Rate', 'live-scores-for-sportspress' ), 'desc' => __( 'Set how many seconds will pass until the results get updated.', 'live-scores-for-sportspress' ), 'id' => 'lsfs_refresh_rate', 'default' => '60', 'type' => 'number', 'class' => 'small-text' ) ) ); -
apply_filters( 'lsfs_get_live_parts', array( 'post_type' => 'lsfs_live_parts', 'post_status' => 'publish', 'orderby' => array( 'menu_order' => 'ASC', 'date' => 'DESC' ), 'posts_per_page' => 500, 'meta_key' => 'lsfs_live_type', 'meta_value' => $type, ) ); -
apply_filters( 'lsfs_get_template_part', $template, $slug, $name ); -
do_action( 'lsfs_include_integrations_after' ); -
do_action( 'lsfs_include_integrations_before' ); -
apply_filters( 'lsfs_integrations', array() ); -
apply_filters( 'lsfs_js', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'lsfs-public-nonce' ), 'live_refresh' => absint( lsfs_live_refresh_rate() ) * 1000 ) ); -
apply_filters( 'lsfs_league_tables_options', array( array( 'title' => __( 'Enable Live Tables', 'live-scores-for-sportspress' ), 'desc' => __( 'If checked, each league table will try to perform live updates.', 'live-scores-for-sportspress' ), 'id' => 'lsfs_enable_live_tables', 'default' => 'no', 'type' => 'checkbox', ), ) ); -
apply_filters( 'lsfs_live_refresh_rate', $refresh_rate ); -
apply_filters( 'lsfs_live_settings', $settings ); -
apply_filters( 'lsfs_locate_template', $template, $template_name, $template_path ); -
apply_filters( 'lsfs_register_post_type_live_parts', array( 'labels' => array( 'name' => __( 'Live Parts', 'live-scores-for-sportspress' ), 'menu_name' => __( 'Live Parts', 'live-scores-for-sportspress' ), 'singular_name' => __( 'Live Part', 'live-scores-for-sportspress' ), 'add_new_item' => __( 'Add New Live Part', 'live-scores-for-sportspress' ), 'edit_item' => __( 'Edit Live Part', 'live-scores-for-sportspress' ), 'new_item' => __( 'New', 'liv... ); -
apply_filters( 'lsfs_scorer_options', array( array( 'title' => __( 'Score Information', 'live-scores-for-sportspress' ), 'desc' => __( 'Which information should you display for scorers. Usually, for soccer is minutes and for basketball is points.', 'live-scores-for-sportspress' ), 'id' => 'lsfs_scorers_information', 'default' => 'minutes', 'type' => 'select', 'options' => array( 'minutes' => __( 'Minutes', 'live-scores-for-sportspr... ); -
do_action( 'lsfs_scorers_form_before_button', $team_id, $post_id ); -
apply_filters( 'LSFS_TEMPLATE_PATH', 'sportspress/' ); -
do_action( 'lsfs_updated', $this->version ); -
do_action( 'sportspress_after_widget', $args, $instance, 'live-event-list' ); -
do_action( 'sportspress_after_widget_template', $args, $instance, 'live-event-list' ); -
do_action( 'sportspress_after_widget_template_form', $this, $instance, 'live-event-list' ); -
do_action( 'sportspress_before_widget', $args, $instance, 'live-event-list' ); -
do_action( 'sportspress_before_widget_template', $args, $instance, 'live-event-list' ); -
apply_filters( 'sportspress_competitive_event_formats', array( 'league' ) ); -
sportspress_event_blocks_team_result_or_time
filter Used by 3 plugins → Copy link Customise this hookapply_filters( 'sportspress_event_blocks_team_result_or_time', sp_get_main_results_or_time( $event ), $event->ID ); -
apply_filters( 'sportspress_event_date', get_post_time( get_option( 'date_format' ), false, $event, true ), $event->ID ); -
apply_filters( 'sportspress_widget_update', $instance, $new_instance, $old_instance, 'live-event-list' ); -
apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base );
Generated from Live Scores for SportsPress's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: