There’s a new feature that slipped into the admin side of WordPress with the recently-released 3.8 – Dashicons! Very similar to Font Awesome, Dashicons give plugin developers a nice set of pre-made icons to use. The cool thing is that Dashicons come pre-loaded, and using them in your WordPress custom post types is as simple as adding a parameter to your register_post_type() function, like so:
// Register a new custom post type named "Portfolio" register_post_type('portfolio', array( 'public' => true, 'menu_icon'=> 'dashicons-portfolio', 'label' => __( 'Portfolio', 'local' ), );
Here’s a screengrab from our Lowrize plugin using Dashicons:
Pretty nifty, eh?!