<?php

// Prevent Direct Access
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Register 'price' post type
function maxo_price_register() {

	// Labels
	$labels = array(
		'name'               => esc_html__('Prices', 'maxo-fa'),
		'singular_name'      => esc_html__('Price', 'maxo-fa'),
		'menu_name'          => esc_html__('Prices', 'maxo-fa'),
		'add_new'            => esc_html__('Add New Price', 'maxo-fa'),
		'add_new_item'       => esc_html__('Add New Price', 'maxo-fa'),
		'edit_item'          => esc_html__('Edit Price', 'maxo-fa'),
		'new_item'           => esc_html__('New Price', 'maxo-fa'),
		'view_item'          => esc_html__('View Price', 'maxo-fa'),
		'search_items'       => esc_html__('Search Prices', 'maxo-fa'),
		'not_found'          => esc_html__('Nothing Found', 'maxo-fa'),
		'not_found_in_trash' => esc_html__('Nothing Found in Trash', 'maxo-fa'),
		'parent_item_colon'  => esc_html__('Parent Item:', 'maxo-fa'),
	);

	// Register 'price' post type
	register_post_type('price', array(
		'labels' => $labels,
		'public' => true,
		'exclude_from_search' => true,
		'show_in_nav_menus'   => false,
		'menu_position' => null,
		'menu_icon' => 'dashicons-tickets-alt',
		'supports' => array('title')
	));
}

add_action('init', 'maxo_price_register');
