<?php

function nft_items(){
   register_post_type('nft',
      array(
         'labels' => array(
            'name' => __('NFT Items', 'ethrik'),
            'singular_name' => __('NFT Item', 'ethrik'),
            'add_new' => __('Add New Item', 'ethrik'),
            'add_new_item' => __('Add New Item', 'ethrik'),
            'edit_item' => __('Edit Item', 'ethrik'),
            'new_item' => __('New Item', 'ethrik'),
            'view_item' => __('View Item', 'ethrik'),
            'all_items' => __( 'All Items', 'ethrik' ),
            'not_found' => __('Sorry, we could not find any NFT items you are looking for!', 'ethrik'),
         ),
         'menu_icon' => 'dashicons-nametag',
         'public' => true,
         'publicly_queryable' => true,
         'hierarchical' => true,
         'exclude_from_search' => true,
         'has_archive' => true,
         'show_ui' => true,
         'can_export' => true,
         'show_in_admin_bar' => true,
         'menu_position' => 57,
         'capability_type' => 'post',
         'rewrite' => array('slug'=>'nft-item'),
         'supports' => array('title', 'editor', 'revisions', 'thumbnail'),
      ),
   );
}
add_action('init', 'nft_items');

?>