• Resolved ozgurgedikli

    (@ozgurgedikli)


    Match broadcast time type options are On Time, TBD (Defeat by Forfeit), Postponed and Cancelled. However, the Vacationed option should also be added.

    On Time – The match started normally

    TBD (Defeat by Forfeit) – The match won due to a rule error

    Postponed – The match was postponed due to inconveniences such as weather conditions, transportation before the match time started

    • Vacationed – The match was stopped and postponed by the referee while it was being played. In this case, there will be minute and score information, but the scores will not be included in the league table ranking.

    Cancelled – The match was scheduled but was removed by the league committee

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi there @ozgurgedikli ,

    You can as many new statuses you want using the following hook:

    // Define a callback function to add the new status
    function add_new_event_status( $statuses ) {
    $statuses['vacationed'] = esc_attr__( 'Vacationed', 'text-domain' );
    return $statuses;
    }

    // Hook the callback function into the sportspress_event_statuses filter
    add_filter( 'sportspress_event_statuses', 'add_new_event_status' );

    Thanks,
    Savvas

    Thread Starter ozgurgedikli

    (@ozgurgedikli)

    H? @savvasha ,

    Thanks, it needs some improvement
    Status is created in the editing section.
    I should include the status in the activity page view.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.