In this final installment of discussing the changes coming to the Sports Bench plugin, I want to discuss some of the changes for the standings, stats and scoreboard functionality.
Compared to games, players and teams, there aren’t many drastic changes to these components. In fact, all of the normal functions and filters will work as is when you update to version 2.0.
But there are a few additions that you might want to be aware of and use for your customizations. So let’s take a dive into them.
Standings
As mentioned before, you won’t have to worry about any of the current functions not working when you update. I’ve made sure to move all of them over to version 2.0.
The biggest change comes from a Standings class that you can now use to call those methods. To do this, you will need to put use Sports_Bench\Classes\Base\Standings
near the top of your PHP file and then can create a new standings object like you normally would.
Right now the class is just filled with the methods used for the base functions. But I might be filling it in with more interesting functionality as time goes on.
Stats
The same really goes for the stats component as well. There is a new stats class that you can use by placing use Sports_Bench\Classes\Base\Stats
at the top of the PHP file and then creating a stats object like normal.
Again, right now the class only has methods needed for the base functions from the current version of the plugin, but that might change as time goes on.
Scoreboard
Finally, the same goes for the scoreboard component as well. There is a new scoreboard class that you can use by placing use Sports_Bench\Classes\Base\Scoreboard
at the top of the PHP file and then creating a scoreboard object like normal.
Again, right now the class only has methods needed for the base functions from the current version of the plugin, but that might change as time goes on.
Check out the documentation
Finally, be sure to check out the documentation. I’ve added in a complete list of all of the functions, hooks, classes, methods, etc. that are in Sports Bench 2.0 so you can know exactly what each thing does and how to use it for your website.
Leave a Reply