Support » Plugin: SportsPress - Sports Club & League Manager » Change default substitute option on dropdown

  • Resolved picolli


    I run a Indoor football (soccer) tournament site with Sportspress where we can do unlimited substitutions per match, so as default we always select the blank option under the Substitute Dropbox on Status.
    Since we have to do this for every player on every match I wonder if there is a way (even editing the plugin files) to change the default value from “None” to “blank”?


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Roch


    HI there!

    Thanks for reaching out.

    That’s an interesting idea. We don’t have an option for this. @savvasha, do you know if there’s an easy way to edit the plugin files to change this?


    Plugin Contributor Savvas


    Hi there @picolli ,

    Unfortunately this is more complicated than it shows.

    The function that printout the selection list is sub_select() which is defined at wp-content/plugins/sportspress/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php at line 555.

    You can try to manipulate this function in a way that suits you, but take notice that those changes are not update persistent. So you need to make them again every time an update of SportsPress is done.


    Thread Starter picolli


    Thanks for reaching out, guys. It worked, but not fully as expected.
    Now all players from the match shows the substitute ‘up arrow’ next to their names, but I expected this to show only to players that started on the bench (as it does with the original code and setting manually the Substitutes and the dropbox to ’empty’)

    Plugin Contributor Roch


    Hi there!

    If you are a Pro customer, please get in touch with our premium support. We can check this a bit more there 🙂


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change default substitute option on dropdown’ is closed to new replies.