Calculating Points

Points are calculated based on the plugin’s settings for points awarded for wins, losses, ties (or draws), overtime wins, and overtime losses. The formula is:

$points = Wins * Pts_For_Win + Losses * Pts_For_Loss + Ties * Pts_For_Tie + OT_Wins * Pts_For_OTW + OT_Losses * Pts_For_OTL

So point calculations may be customized for each SPORT via the Settings Admin screen. See the plugin’s Settings man page for more information.

To handle further customization, the mstw_ls_calc_points filter is provided. When saving a team, after the points calculation but before storing the result, it is passed to any registered callbacks. See the Actions & Filters man page for more information on this filter.