<?php

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

// Register 'team' post type
function maxo_team_register() {

	// Labels
	$labels = array(
		'name'               => esc_html__('Team Members', 'maxo-fa'),
		'singular_name'      => esc_html__('Team Member', 'maxo-fa'),
		'menu_name'          => esc_html__('Team Members', 'maxo-fa'),
		'add_new'            => esc_html__('Add New Team Member', 'maxo-fa'),
		'add_new_item'       => esc_html__('Add New Team Member', 'maxo-fa'),
		'edit_item'          => esc_html__('Edit Team Member', 'maxo-fa'),
		'new_item'           => esc_html__('New Team Member', 'maxo-fa'),
		'view_item'          => esc_html__('View Team Member', 'maxo-fa'),
		'search_items'       => esc_html__('Search Team Members', '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 'team' post type
	register_post_type('team', array(
		'labels' => $labels,
		'public' => true,
		'exclude_from_search' => true,
		'show_in_nav_menus'   => false,
		'menu_position' => null,
		'menu_icon' => 'dashicons-groups',
		'supports' => array('title','thumbnail')
	));
}

add_action('init', 'maxo_team_register');
