<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Register Restaurant Menu CPT and Taxonomy with Dynamic Slug
 *
 * This class now extends the reusable CPT Factory Base,
 * reducing code duplication across all CPT registration classes.
 */
final class Sifency_Addons_Register_Restaurant_Menu_CPT extends Sifency_CPT_Factory_Base {
	protected $post_type         = 'menu';
	protected $singular_name     = 'Menu Item';
	protected $plural_name       = 'Menu Items';
	protected $option_slug_key   = 'menu_slug';
	protected $default_slug      = 'menu';
	protected $menu_icon         = 'dashicons-welcome-widgets-menus';
	protected $taxonomy_name     = 'menu_category';
	protected $taxonomy_singular = 'Menu Category';
	protected $taxonomy_plural   = 'Menu Categories';
	protected $supports          = array( 'title', 'thumbnail', 'excerpt' );
}
new Sifency_Addons_Register_Restaurant_Menu_CPT();
