PostTypes
  • PostTypes v2.2.1
  • Getting Started
  • PostTypes
    • Create a Post Type
    • Add Taxonomies
    • Filters
    • Columns
    • Menu Icons
    • Flush Rewrite Rules
  • Taxonomies
    • Create a Taxonomy
    • Add to Post Type
    • Columns
  • Notes
  • Contributing
  • Changelog
Powered by GitBook
On this page
  1. PostTypes

Menu Icons

PreviousColumnsNextFlush Rewrite Rules

Last updated 6 years ago

WordPress 3.8 has , 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

Dashicons
WordPress codex