| @@ -27,12 +27,8 @@ | ||
| 27 | 27 | |
| 28 | 28 | $singular = __( 'Team Member', 'team' ); |
| 29 | 29 | $plural = __( 'Team Members', 'team' ); |
| 30 | 30 | |
| 31 | - $team_member_slug = get_option('team_member_slug'); | |
| 32 | - | |
| 33 | - if(empty($team_member_slug)) {$team_member_slug = 'team_member';} | |
| 34 | - | |
| 35 | 31 | |
| 36 | 32 | register_post_type( "team_member", |
| 37 | 33 | apply_filters( "register_post_type_team_member", array( |
| 38 | 34 | 'labels' => array( |
| @@ -59,15 +55,17 @@ | ||
| 59 | 55 | 'map_meta_cap' => true, |
| 60 | 56 | 'publicly_queryable' => true, |
| 61 | 57 | 'exclude_from_search' => false, |
| 62 | 58 | 'hierarchical' => false, |
| 63 | - 'rewrite' => array( 'slug' => $team_member_slug ), | |
| 59 | + 'rewrite' => true, | |
| 64 | 60 | 'query_var' => true, |
| 65 | 61 | 'supports' => array( 'title','editor','thumbnail','custom-fields' ), |
| 66 | 62 | 'show_in_nav_menus' => false, |
| 67 | - //'show_in_menu' => 'edit.php?post_type=team', | |
| 63 | + 'show_in_menu' => 'edit.php?post_type=team', | |
| 68 | 64 | 'menu_icon' => 'dashicons-admin-users', |
| 69 | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 70 | 68 | ) ) |
| 71 | 69 | ); |
| 72 | 70 | |
| 73 | 71 | $singular = __( 'Team Group', 'team' ); |
| @@ -121,9 +119,9 @@ | ||
| 121 | 119 | 'name' => $plural, |
| 122 | 120 | 'singular_name' => $singular, |
| 123 | 121 | 'menu_name' => __( 'Team', 'team' ), |
| 124 | 122 | 'all_items' => sprintf( __( 'All %s', 'team' ), $plural ), |
| 125 | - 'add_new' => __( 'Create Team', 'team' ), | |
| 123 | + 'add_new' => __( 'Add New', 'team' ), | |
| 126 | 124 | 'add_new_item' => sprintf( __( 'Add %s', 'team' ), $singular ), |
| 127 | 125 | 'edit' => __( 'Edit', 'team' ), |
| 128 | 126 | 'edit_item' => sprintf( __( 'Edit %s', 'team' ), $singular ), |
| 129 | 127 | 'new_item' => sprintf( __( 'New %s', 'team' ), $singular ), |