Skip to content

Instantly share code, notes, and snippets.

@kovshenin
Created December 23, 2013 12:23
Show Gist options
  • Save kovshenin/8096214 to your computer and use it in GitHub Desktop.
Save kovshenin/8096214 to your computer and use it in GitHub Desktop.
<?php
add_action( 'init', 'my_init' );
function my_init() {
register_post_type( 'book', array(
'public' => true,
'menu_icon' => 'dashicons-facebook',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment