Initialize directory post type and tag 0.5

This commit is contained in:
Brian Miyaji
2014-03-18 01:03:06 +11:00
parent b885665f21
commit 1aa1cb56ec
6 changed files with 194 additions and 17 deletions

View File

@@ -9,6 +9,8 @@ function sportspress_admin_head() {
sportspress_highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit.php?post_type=sp_list' );
elseif ( $typenow == 'sp_staff' )
sportspress_highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit.php?post_type=sp_staff' );
elseif ( $typenow == 'sp_directory' )
sportspress_highlight_admin_menu( 'edit.php?post_type=sp_player', 'edit.php?post_type=sp_directory' );
}
add_action( 'admin_head-edit.php', 'sportspress_admin_head', 10, 2 );
add_action( 'admin_head-post.php', 'sportspress_admin_head', 10, 2 );