// Register Custom Post Type function add_bookings_cpt() { $labels = array( 'name' => 'Замовлення', 'singular_name' => 'Замовлення', 'menu_name' => 'Бронювання', 'name_admin_bar' => 'Замовлення', 'archives' => 'Item Archives', 'attributes' => 'Item Attributes', 'parent_item_colon' => '', 'all_items' => 'Всі замовлення', 'add_new_item' => 'Додати замовлення', 'add_new' => 'Додати нове', 'new_item' => 'Нове', 'edit_item' => 'Редагувати', 'update_item' => 'Оновити', 'view_item' => 'Переглянути', 'view_items' => 'View Items', 'search_items' => 'Знайти', 'not_found' => 'Не знайдено', 'not_found_in_trash' => 'Не знайдено в Кошику', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into item', 'uploaded_to_this_item' => 'Uploaded to this item', 'items_list' => 'Items list', 'items_list_navigation' => 'Items list navigation', 'filter_items_list' => 'Filter items list', ); $args = array( 'label' => 'Замовлення', 'description' => 'Бронювання', 'labels' => $labels, 'supports' => array( 'title', 'editor' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-cart', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'booking', $args ); } add_action( 'init', 'add_bookings_cpt', 0 );