Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (57 sloc) 1.27 KB
<?php
// Setup your custom post types here
/*
// Custom Post Type
add_action( 'init', 'eq2_create_post_types' );
function eq2_create_post_types() {
register_post_type( 'samples',
array(
'labels' => array(
'name' => __( 'Samples' ),
'singular_name' => __( 'Sample' )
),
'public' => true,
'has_archive' => true,
'menu_icon' => '',
)
);
register_post_type( 'thoughtpiece',
array(
'labels' => array(
'name' => __( 'Thoughtpiece' ),
'singular_name' => __( 'Thoughtpiece' )
),
'public' => true,
'has_archive' => true,
'menu_icon' => '',
)
);
register_post_type( 'nav-sections',
array(
'labels' => array(
'name' => __( 'Nav Sections' ),
'singular_name' => __( 'Nav Sections' )
),
'public' => true,
'has_archive' => true,
'menu_icon' => '',
)
);
}
function eq2_add_menu_icons_styles(){
?>
<style>
#adminmenu .menu-icon-samples div.wp-menu-image:before {
content: "\f497";
}
#adminmenu .menu-icon-nav-sections div.wp-menu-image:before {
content: "\f175";
}
#adminmenu .menu-icon-thoughtpiece div.wp-menu-image:before {
content: "\f339";
}
</style>
<?php
}
add_action( 'admin_head', 'eq2_add_menu_icons_styles' );
*/