<?php
//Slots
function create_slots()
{
    $labels = array(
        'name' => __('Slots', 'mostbet'),
        'singular_name' => __('Slots', 'mostbet'),
        'menu_name' => __('Slots', 'mostbet'),
        'name_admin_bar' => __('Slots', 'mostbet'),
    );
    $args = array(
        'label' => __('Slots', 'mostbet'),
        'description' => __('Slots', 'mostbet'),
        'labels' => $labels,
        'supports' => array('title', 'editor', 'comments', 'thumbnail'),
        'hierarchical' => false,
        'public' => true,
        'show_ui' => true,
        'show_in_menu' => true,
        'menu_position' => 5,
        'menu_icon' => 'dashicons-star-filled',
        'show_in_admin_bar' => true,
        'show_in_nav_menus' => true,
        'can_export' => true,
        'has_archive' => false,
        'exclude_from_search' => false,
        'publicly_queryable' => true,
        'capability_type' => 'page',
    );

    register_post_type('slots', $args);

}

add_action('init', 'create_slots', 0);