Display multiple current teams in staff details

This commit is contained in:
Brian Miyaji
2015-07-19 13:08:38 +10:00
parent 507f13e839
commit fefc8790f7
2 changed files with 24 additions and 4 deletions

View File

@@ -12,6 +12,16 @@
*/
class SP_Staff 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
*