Use dashicons for custom post types
This commit is contained in:
@@ -12,6 +12,7 @@ function sp_event_cpt_init() {
|
||||
'supports' => array( 'title', 'author', 'comments' ),
|
||||
'register_meta_box_cb' => 'sp_event_meta_init',
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_event_slug', 'event' ) ),
|
||||
'menu_icon' => 'dashicons-calendar',
|
||||
'capability_type' => 'sp_event'
|
||||
);
|
||||
register_post_type( 'sp_event', $args );
|
||||
|
||||
@@ -12,6 +12,7 @@ function sp_player_cpt_init() {
|
||||
'supports' => array( 'title', 'author', 'thumbnail' ),
|
||||
'register_meta_box_cb' => 'sp_player_meta_init',
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_player_slug', 'player' ) ),
|
||||
'menu_icon' => 'dashicons-groups',
|
||||
'capability_type' => 'sp_player'
|
||||
);
|
||||
register_post_type( 'sp_player', $args );
|
||||
|
||||
@@ -12,6 +12,7 @@ function sp_staff_cpt_init() {
|
||||
'supports' => array( 'title', 'author', 'thumbnail' ),
|
||||
'register_meta_box_cb' => 'sp_staff_meta_init',
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_staff_slug', 'staff' ) ),
|
||||
'menu_icon' => 'dashicons-businessman',
|
||||
'capability_type' => 'sp_staff'
|
||||
);
|
||||
register_post_type( 'sp_staff', $args );
|
||||
|
||||
@@ -12,6 +12,7 @@ function sp_team_cpt_init() {
|
||||
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'page-attributes' ),
|
||||
'register_meta_box_cb' => 'sp_team_meta_init',
|
||||
'rewrite' => array( 'slug' => get_option( 'sp_team_slug', 'team' ) ),
|
||||
'menu_icon' => 'dashicons-shield-alt',
|
||||
'capability_type' => 'sp_team'
|
||||
);
|
||||
register_post_type( 'sp_team', $args );
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#adminmenu #menu-posts-sp_tournament div.wp-menu-image,
|
||||
#adminmenu #menu-posts-sp_venue div.wp-menu-image {
|
||||
background-image: url(../images/menu.png);
|
||||
background-image: none;
|
||||
background-repeat: no-repeat;
|
||||
background-position: 1px -33px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user