Menu Icons

WordPress 3.8 has Dashicons, an icon font you can use with your custom post types.

To set the post type icon pass the dashicon icon slug to the icon() method.

$books->icon( 'dashicons-book-alt' );

A list of available icons can be found on the WordPress codex

Last updated