Move globals to classes
This commit is contained in:
28
includes/class-sp-sports.php
Normal file
28
includes/class-sp-sports.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* SportsPress sports
|
||||
*
|
||||
* The SportsPress sports class stores preset sport data.
|
||||
*
|
||||
* @class SP_Sports
|
||||
* @version 0.7
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
*/
|
||||
class SP_Sports {
|
||||
|
||||
/** @var array Array of sports */
|
||||
public $sports;
|
||||
|
||||
/**
|
||||
* Constructor for the sports class - defines all preset sports.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->sports = apply_filters( 'sportspress_sports', array(
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user