Display all current teams in player profile
This commit is contained in:
@@ -12,6 +12,16 @@
|
||||
*/
|
||||
class SP_Player extends SP_Custom_Post {
|
||||
|
||||
/**
|
||||
* Returns current teams
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function current_teams() {
|
||||
return get_post_meta( $this->ID, 'sp_current_team', false );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns past teams
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user