<?php 

function cptui_register_my_cpts_servicios() {

	/**
	 * Post Type: Servicios.
	 */
	$labels = array(
		"name" => __( "Servicios", "EMQ" ),
		"singular_name" => __( "Servicio", "EMQ" ),
		"menu_name" => __( "Servicios", "EMQ" ),
		"all_items" => __( "Todos los servicios", "EMQ" ),
		"add_new" => __( "Agregar servicio", "EMQ" ),
		"add_new_item" => __( "Añadir nuevo servicio", "EMQ" ),
		"edit_item" => __( "Editar servicio", "EMQ" ),
		"new_item" => __( "Nuevo servicio", "EMQ" ),
		"view_item" => __( "Ver servicio", "EMQ" ),
		"view_items" => __( "Ver servicio", "EMQ" ),
		"search_items" => __( "Buscar servicio", "EMQ" ),
		"not_found" => __( "No se encontró el servicio", "EMQ" ),
		"not_found_in_trash" => __( "No se encontro en la papelera", "EMQ" ),
		"featured_image" => __( "Imagen destacada", "EMQ" ),
		"set_featured_image" => __( "Establecer imagen destacada", "EMQ" ),
		"remove_featured_image" => __( "Remover imagen destacada", "EMQ" ),
		"use_featured_image" => __( "Utilizar como imagen destacada", "EMQ" ),
	);

	$args = array(
		"label" => __( "Servicios", "EMQ" ),
		"labels" => $labels,
		"description" => "",
		"public" => true,
		"publicly_queryable" => true,
		"show_ui" => true,
		"delete_with_user" => false,
		"show_in_rest" => false,
		"rest_base" => "",
		"rest_controller_class" => "WP_REST_Posts_Controller",
		"has_archive" => false,
		"show_in_menu" => true,
		"show_in_nav_menus" => true,
		"exclude_from_search" => false,
		"capability_type" => "post",
		"map_meta_cap" => true,
		"hierarchical" => false,
		"rewrite" => array( "slug" => "servicio", "with_front" => true ),
		"query_var" => true,
		"menu_icon" => "dashicons-hammer",
		"supports" => array( "title", "editor", "custom-fields", "author" ),
		"show_in_graphql" => true,
		"hierarchical" => true,
		"graphql_single_name" => "servicio",
		"graphql_plural_name" => "servicios",
	);

	register_post_type( "servicio", $args );
}

add_action( 'init', 'cptui_register_my_cpts_servicios' );

?>