Move Staff to own menu

This commit is contained in:
Brian Miyaji
2014-12-09 18:09:54 +11:00
parent 675cf3774f
commit e6071e4871

View File

@@ -553,8 +553,8 @@ class SP_Post_types {
apply_filters( 'sportspress_register_post_type_staff', apply_filters( 'sportspress_register_post_type_staff',
array( array(
'labels' => array( 'labels' => array(
'name' => __( 'Staff', 'sportspress' ), 'name' => _n( 'Staff', 'Staff', 2, 'sportspress' ),
'singular_name' => __( 'Staff', 'sportspress' ), 'singular_name' => _n( 'Staff', 'Staff', 1, 'sportspress' ),
'add_new_item' => __( 'Add New Staff', 'sportspress' ), 'add_new_item' => __( 'Add New Staff', 'sportspress' ),
'edit_item' => __( 'Edit Staff', 'sportspress' ), 'edit_item' => __( 'Edit Staff', 'sportspress' ),
'new_item' => __( 'New', 'sportspress' ), 'new_item' => __( 'New', 'sportspress' ),
@@ -574,8 +574,7 @@ class SP_Post_types {
'supports' => array( 'title', 'author', 'thumbnail', 'excerpt' ), 'supports' => array( 'title', 'author', 'thumbnail', 'excerpt' ),
'has_archive' => false, 'has_archive' => false,
'show_in_nav_menus' => true, 'show_in_nav_menus' => true,
'show_in_menu' => 'edit.php?post_type=sp_player', 'menu_icon' => 'dashicons-businessman',
'show_in_admin_bar' => true,
) )
) )
); );