diff --git a/includes/admin/class-sp-admin-menus.php b/includes/admin/class-sp-admin-menus.php index 27fef654..aefcff4d 100755 --- a/includes/admin/class-sp-admin-menus.php +++ b/includes/admin/class-sp-admin-menus.php @@ -86,7 +86,7 @@ class SP_Admin_Menus { global $typenow; $screen = get_current_screen(); if ( $screen->id == 'sp_role' ) { - $this->highlight_admin_menu( 'edit.php?post_type=sp_staff', 'edit-tags.php?taxonomy=sp_role&post_type=sp_staff' ); + $this->highlight_admin_menu( 'edit.php?post_type=sp_staff', 'edit-tags.php?taxonomy=sp_role&post_type=sp_staff' ); } elseif ( is_sp_config_type( $typenow ) ) { $this->highlight_admin_menu( 'sportspress', 'sportspress-config' ); } elseif ( $typenow == 'sp_calendar' ) { diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php index f438caa6..412c7cbc 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-team-details.php @@ -69,7 +69,7 @@ class SP_Meta_Box_Team_Details { 'name' => 'tax_input[sp_season][]', 'selected' => $season_ids, 'values' => 'term_id', - 'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Competitions', 'sportspress' ) ), + 'placeholder' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Seasons', 'sportspress' ) ), 'class' => 'widefat', 'property' => 'multiple', 'chosen' => true, diff --git a/includes/class-sp-post-types.php b/includes/class-sp-post-types.php index e8a9a3e0..4ce0224b 100644 --- a/includes/class-sp-post-types.php +++ b/includes/class-sp-post-types.php @@ -176,6 +176,8 @@ class SP_Post_types { foreach ( $object_types as $object_type ): register_taxonomy_for_object_type( 'sp_role', $object_type ); endforeach; + + do_action( 'sportspress_after_register_taxonomy' ); } /** @@ -485,6 +487,8 @@ class SP_Post_types { ) ) ); + + do_action( 'sportspress_after_register_post_type' ); } public function delete_config_post( $post_id ) { diff --git a/includes/sp-conditional-functions.php b/includes/sp-conditional-functions.php index 02bcc6e9..6cbb0d12 100755 --- a/includes/sp-conditional-functions.php +++ b/includes/sp-conditional-functions.php @@ -78,7 +78,7 @@ if ( ! function_exists( 'sp_config_types' ) ) { */ if ( ! function_exists( 'sp_taxonomies' ) ) { function sp_taxonomies() { - return apply_filters( 'sportspress_terms', array( 'sp_league', 'sp_season', 'sp_venue', 'sp_position' ) ); + return apply_filters( 'sportspress_taxonomies', array( 'sp_league', 'sp_season', 'sp_venue', 'sp_position' ) ); } }