free game
// Register Custom Post Type
function game_post_type() {
$labels = array(
'name' => _x( 'Juegos', 'Post Type General Name', 'game_domain' ),
'singular_name' => _x( 'Nombre del juego', 'Post Type Singular Name', 'game_domain' ),
'menu_name' => __( 'Juego', 'game_domain' ),
'name_admin_bar' => __( 'Juego', 'game_domain' ),
'archives' => __( 'Archivos Juegos', 'game_domain' ),
'attributes' => __( 'Atributos Juegos', 'game_domain' ),
'parent_item_colon' => __( 'Juego padre:', 'game_domain' ),
'all_items' => __( 'Todos', 'game_domain' ),
'add_new_item' => __( 'Agregar nuevo', 'game_domain' ),
'add_new' => __( 'Agregar', 'game_domain' ),
'new_item' => __( 'Nuevo', 'game_domain' ),
'edit_item' => __( 'Editar', 'game_domain' ),
'update_item' => __( 'Update', 'game_domain' ),
'view_item' => __( 'Ver', 'game_domain' ),
'view_items' => __( 'Ver todos', 'game_domain' ),
'search_items' => __( 'Buscar juego', 'game_domain' ),
'not_found' => __( 'No se encontro', 'game_domain' ),
'not_found_in_trash' => __( 'No se encontro en Trash', 'game_domain' ),
'featured_image' => __( 'Imagen destacada', 'game_domain' ),
'set_featured_image' => __( 'Establecer imagen destacada', 'game_domain' ),
'remove_featured_image' => __( 'Eliminar imagen destacada', 'game_domain' ),
'use_featured_image' => __( 'Usar como imagen destacada', 'game_domain' ),
'insert_into_item' => __( 'Insertar', 'game_domain' ),
'uploaded_to_this_item' => __( 'Añadir al juego', 'game_domain' ),
'items_list' => __( 'Listar', 'game_domain' ),
'items_list_navigation' => __( 'Navegacion por juegos', 'game_domain' ),
'filter_items_list' => __( 'Filtro', 'game_domain' ),
);
$args = array(
'label' => __( 'Nombre del juego', 'game_domain' ),
'description' => __( 'Informacion del juego', 'game_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'comments' ),
'taxonomies' => array( 'category' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-games',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
'show_in_rest' => true,
);
register_post_type( 'game', $args );
}
add_action( 'init', 'game_post_type', 0 );