<?php

namespace The7_Core\Mods\Post_Type_Builder\Bundled;

defined( 'ABSPATH' ) || exit;

class Portfolio_Category_Taxonomy extends Bundled_Item {

	/**
	 * @return string
	 */
	public static function get_name() {
		return 'dt_portfolio_category';
	}

	/**
	 * @return array
	 */
	public static function get_args() {
		return [
			'post_types' => [ Portfolio_Post_Type::get_name() ],
			'args' => apply_filters(
				'presscore_taxonomy_' . ( static::get_name() ) . '_args',
				[
					'labels'                => [
						'name'              => _x( 'Portfolio Categories', 'backend portfolio', 'dt-the7-core' ),
						'singular_name'     => _x( 'Portfolio Category', 'backend portfolio', 'dt-the7-core' ),
						'search_items'      => _x( 'Search in Category', 'backend portfolio', 'dt-the7-core' ),
						'all_items'         => _x( 'Portfolio Categories', 'backend portfolio', 'dt-the7-core' ),
						'parent_item'       => _x( 'Parent Portfolio Category', 'backend portfolio', 'dt-the7-core' ),
						'parent_item_colon' => _x( 'Parent Portfolio Category:', 'backend portfolio', 'dt-the7-core' ),
						'edit_item'         => _x( 'Edit Category', 'backend portfolio', 'dt-the7-core' ),
						'update_item'       => _x( 'Update Category', 'backend portfolio', 'dt-the7-core' ),
						'add_new_item'      => _x( 'Add New Portfolio Category', 'backend portfolio', 'dt-the7-core' ),
						'new_item_name'     => _x( 'New Category Name', 'backend portfolio', 'dt-the7-core' ),
						'menu_name'         => _x( 'Portfolio Categories', 'backend portfolio', 'dt-the7-core' )
					],
					'hierarchical'          => true,
					'public'                => true,
					'show_ui'               => true,
					'rewrite'               => [ 'slug' => 'project-category' ],
					'show_admin_column'		=> true,
					'show_in_rest'          => true,
				]
			)
		];
	}

	/**
	 * @return string
	 */
	public static function get_module_name() {
		return 'portfolio';
	}
}
