Merge pull request #274 from kadimi/patch-10
Apply "Reverse Teams" option to event titles too
This commit is contained in:
@@ -102,6 +102,11 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
|
||||
|
||||
$team_names = array_unique( $team_names );
|
||||
|
||||
$reverse_teams = get_option( 'sportspress_event_reverse_teams', 'no' ) === 'yes' ? true : false;
|
||||
if ( $reverse_teams ) {
|
||||
$team_names = array_reverse( $team_names );
|
||||
}
|
||||
|
||||
$data['post_title'] = implode( ' ' . get_option( 'sportspress_event_teams_delimiter', 'vs' ) . ' ', $team_names );
|
||||
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user