Apply "Reverse Teams" to the Box Score metabox
This commit is contained in:
@@ -89,6 +89,10 @@ class SP_Event extends SP_Custom_Post{
|
|||||||
|
|
||||||
public function performance( $admin = false ) {
|
public function performance( $admin = false ) {
|
||||||
$teams = get_post_meta( $this->ID, 'sp_team', false );
|
$teams = get_post_meta( $this->ID, 'sp_team', false );
|
||||||
|
if ( 'yes' === get_option( 'sportspress_event_reverse_teams', 'no' ) ) {
|
||||||
|
$teams = array_reverse( $teams, true );
|
||||||
|
}
|
||||||
|
|
||||||
$performance = (array)get_post_meta( $this->ID, 'sp_players', true );
|
$performance = (array)get_post_meta( $this->ID, 'sp_players', true );
|
||||||
|
|
||||||
$args = array(
|
$args = array(
|
||||||
|
|||||||
Reference in New Issue
Block a user