play control on sorting
-
Hi,
I’ve a problem with the sorting.
If there are one or more teams with less o more plays the plugin doesn’t have to control the number of plays played for render the ranking (the FIGC rules doesn’t uses this method) . So I’ve modified your code like this:class-football-pool-groups.php >> compare_teams
at row : 105
if ( apply_filters( ‘footballpool_group_compare_plays’, $a[‘plays’], $b[‘plays’] ) ) {//in my functions.php
add_filter( ‘footballpool_group_compare_plays’, function($aPlays, $bPlays){
return true ;
});if someone what to use the plays control just have to return the compare from a and b (return $aPlays == $bPlay ).
Can you add this snippet or some configuration to your plugin?.Thanks
- The topic ‘play control on sorting’ is closed to new replies.