From 5e0cdf8bd67f5a906c7d37c971e44b3ae695bfa7 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 12 May 2014 22:34:17 +1000 Subject: [PATCH] Use function to get post types --- includes/class-sp-install.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/class-sp-install.php b/includes/class-sp-install.php index 891cb5fa..5aa97b48 100644 --- a/includes/class-sp-install.php +++ b/includes/class-sp-install.php @@ -327,7 +327,10 @@ class SP_Install { 'edit_sp_team_columns', ); - $capability_types = array( 'sp_config', 'sp_event', 'sp_calendar', 'sp_team', 'sp_table', 'sp_player', 'sp_list', 'sp_staff' ); + $post_types = sp_post_types(); + array_unshift( $post_types, 'sp_config' ); + + $capability_types = apply_filters( 'sportspress_post_types', $post_types ); foreach ( $capability_types as $capability_type ) {