Skip to content

Instantly share code, notes, and snippets.

@kovshenin
Created December 23, 2013 11:59
Show Gist options
  • Save kovshenin/8095952 to your computer and use it in GitHub Desktop.
Save kovshenin/8095952 to your computer and use it in GitHub Desktop.
<?php
function set_custom_dashicon() {
?>
<style type="text/css">
#menu-posts-{post_type} .wp-menu-image:before {
content: '\f174';
}
</style>
<?php
}
add_action( 'admin_head', 'set_custom_dashicon' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment