Display all current teams in player profile

This commit is contained in:
Brian Miyaji
2014-05-31 01:21:41 +10:00
parent c74c9d1c66
commit 0a2d590bb0
2 changed files with 19 additions and 3 deletions

View File

@@ -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
*