Add activation welcome and notices close #21

This commit is contained in:
Brian Miyaji
2014-03-31 01:42:56 +11:00
parent 87e0c574f4
commit dcec47abcf
17 changed files with 540 additions and 154 deletions

View File

@@ -2998,7 +2998,7 @@ if ( !function_exists( 'sp_highlight_admin_menu' ) ) {
* Get an array of sport options and settings.
* @return array
*/
function sp_get_sport_options() {
function sp_get_sport_presets() {
return apply_filters( 'sportspress_sports', array(
'baseball' => array(
'name' => __( 'Baseball', 'sportspress' ),
@@ -5240,6 +5240,15 @@ function sp_get_sport_options() {
));
}
function sp_get_sport_options() {
$sports = sp_get_sport_presets();
$options = array();
foreach ( $sports as $slug => $data ):
$options[ $slug ] = $data['name'];
endforeach;
return $options;
}
/**
* Get an array of text options per context.
* @return array