Plugin Eventos – ASCOOP
Eventos – ASCOOP
if ( ! function_exists('eventos_cc') ) { // Register Custom Post Type function eventos_cc() { $labels = array( 'name' => 'Eventos', 'singular_name' => 'Evento', 'menu_name' => 'Eventos', 'name_admin_bar' => 'Eventos', 'archives' => 'Archivo eventos', 'attributes' => 'Atributos eventos', 'parent_item_colon' => 'Eventos padre', 'all_items' => 'Todos los eventos', 'add_new_item' => 'Añadir nuevo evento', 'add_new' => 'Añadir nuevo', 'new_item' => 'Nuevo evento', 'edit_item' => 'Editar evento', 'update_item' => 'Actualizar evento', 'view_item' => 'Ver evento', 'view_items' => 'Ver eventos', 'search_items' => 'Buscar evento', 'not_found' => 'No encontrado', 'not_found_in_trash' => 'No encontrado en la papelera', 'featured_image' => 'Imagen destacada', 'set_featured_image' => 'Configurar imagen destacada', 'remove_featured_image' => 'Quitar imagen destacada', 'use_featured_image' => 'Usar como imagen destacada', 'insert_into_item' => 'Insertar en el evento', 'uploaded_to_this_item' => 'Actualizar en este evento', 'items_list' => 'Listado de eventos', 'items_list_navigation' => 'Lista navegable de eventos', 'filter_items_list' => 'Filtro de lista de eventos', ); $rewrite = array( 'slug' => 'eventos', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => 'Evento', 'description' => 'Entradas de los eventos', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'categorias_eventos' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-calendar-alt', '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' => 'post', ); register_post_type( 'eventos_cc', $args ); } add_action( 'init', 'eventos_cc', 0 ); }