wp cpt dashicon

  1. Navigate to your WordPress dashboard.
  2. Go to "Plugins" and click on "Add New."
  3. Search for and install the "Custom Post Type UI" plugin.
  4. Activate the plugin.
  5. In the dashboard, find "CPT UI" and click on "Add/Edit Post Types."
  6. Add a new custom post type by filling in the required details.
  7. Save the custom post type.
  8. Go to "Appearance" and click on "Menu."
  9. Add the custom post type to the menu.
  10. Save the menu.
  11. Go to your theme editor and open the functions.php file.
  12. Add the following code to enqueue Dashicons for your custom post type:
function enqueue_custom_post_type_dashicons() {
    wp_enqueue_style('dashicons');
}
add_action('admin_enqueue_scripts', 'enqueue_custom_post_type_dashicons');
  1. Save the changes.
  2. Verify that Dashicons are now available for your custom post type in the WordPress dashboard.