/** * Include the settings page classes */ public static function get_settings_pages() { if (empty(self::$settings)) { $settings = array(); include_once 'class-sp-admin-sports.php'; include_once 'settings/class-sp-settings-page.php'; $settings[] = (include 'settings/class-sp-settings-general.php'); $settings[] = (include 'settings/class-sp-settings-events.php'); $settings[] = (include 'settings/class-sp-settings-teams.php'); $settings[] = (include 'settings/class-sp-settings-players.php'); $settings[] = (include 'settings/class-sp-settings-staff.php'); $settings = apply_filters('prosports_get_settings_pages', $settings); $settings[] = (include 'settings/class-sp-settings-text.php'); if (current_user_can('manage_options')) { $settings[] = (include 'settings/class-sp-settings-status.php'); } self::$settings = apply_filters('prosports_get_settings_config_pages', $settings); } return self::$settings; }
/** * Include the settings page classes */ public static function get_settings_pages() { if (empty(self::$settings)) { $settings = array(); include_once 'class-sp-admin-sports.php'; include_once 'settings/class-sp-settings-page.php'; $settings[] = (include 'settings/class-sp-settings-modules.php'); $settings[] = (include 'settings/class-sp-settings-general.php'); $settings[] = (include 'settings/class-sp-settings-events.php'); $settings[] = (include 'settings/class-sp-settings-teams.php'); $settings[] = (include 'settings/class-sp-settings-players.php'); $settings[] = (include 'settings/class-sp-settings-staff.php'); $settings = apply_filters('sportspress_get_settings_pages', $settings); $settings[] = (include 'settings/class-sp-settings-text.php'); if (!is_multisite() && current_user_can('manage_options') || is_multisite() && current_user_can('manage_network_options')) { $settings[] = (include 'settings/class-sp-settings-licenses.php'); } if (current_user_can('manage_options')) { $settings[] = (include 'settings/class-sp-settings-status.php'); } self::$settings = apply_filters('sportspress_get_settings_config_pages', $settings); } return self::$settings; }