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

/**
 * Register Stack 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_Stack_CPT extends Sifency_CPT_Factory_Base {
	protected $post_type         = 'stack';
	protected $singular_name     = 'Stack';
	protected $plural_name       = 'Stacks';
	protected $option_slug_key   = 'stack_slug';
	protected $default_slug      = 'stack';
	protected $menu_icon         = 'dashicons-admin-tools';
	protected $taxonomy_name     = 'stack_category';
	protected $taxonomy_singular = 'Stack Category';
	protected $taxonomy_plural   = 'Stack Categories';
	protected $supports          = array( 'title', 'thumbnail', 'excerpt' );
}

new Sifency_Addons_Register_Stack_CPT();
