Hide player details section if none available
This commit is contained in:
@@ -12,6 +12,16 @@
|
||||
*/
|
||||
class SP_Player extends SP_Custom_Post {
|
||||
|
||||
/**
|
||||
* Returns positions
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function positions() {
|
||||
return get_the_terms( $this->ID, 'sp_position' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns current teams
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user