Participantes Tres Minutos
// Register Custom Post Type
function competitor_post_type() {
$labels = array(
'name' => 'Participantes',
'singular_name' => 'Participante',
'menu_name' => 'Participantes',
'name_admin_bar' => 'Participante',
'archives' => 'Item Archives',
'attributes' => 'Item Attributes',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'Participantes',
'add_new_item' => 'Añadir nuevo participante',
'add_new' => 'Añadir participante',
'new_item' => 'Nuevo participante',
'edit_item' => 'Editar participante',
'update_item' => 'Actualizar participante',
'view_item' => 'Ver participante',
'view_items' => 'Ver participantes',
'search_items' => 'Buscar participante',
'not_found' => 'No hay participantes creados',
'not_found_in_trash' => 'No hay participantes en la papelera',
'featured_image' => 'Imagen destacada',
'set_featured_image' => 'Cambiar imagen destacada',
'remove_featured_image' => 'Eliminar imagen destacada',
'use_featured_image' => 'Usar como imagen destacada',
'insert_into_item' => 'Insert into item',
'uploaded_to_this_item' => 'Uploaded to this item',
'items_list' => 'Items list',
'items_list_navigation' => 'Items list navigation',
'filter_items_list' => 'Filter items list',
);
$rewrite = array(
'slug' => 'participantes',
'with_front' => false,
'pages' => false,
'feeds' => false,
);
$args = array(
'label' => 'Participante',
'description' => 'Participantes tres minutos',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'hierarchical' => false,
'public' => false,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-admin-users',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'participante', $args );
}
add_action( 'init', 'competitor_post_type', 0 );