R notificación
// Register Custom Post Type
function rda_notificacion() {
$labels = array(
'name' => _x( 'Notificaciones', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Notificación', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Notificaciones', 'text_domain' ),
'name_admin_bar' => __( 'Notificaciones', 'text_domain' ),
'archives' => __( 'Archivo', 'text_domain' ),
'attributes' => __( 'Atributos de notificación', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'all_items' => __( 'Todos', 'text_domain' ),
'add_new_item' => __( 'Agregar nueva notificación', 'text_domain' ),
'add_new' => __( 'Agregar', 'text_domain' ),
'new_item' => __( 'Nueva notificación', 'text_domain' ),
'edit_item' => __( 'Editar notificación', 'text_domain' ),
'update_item' => __( 'Actualizar notificación', 'text_domain' ),
'view_item' => __( 'Ver notificación', 'text_domain' ),
'view_items' => __( 'Ver notificación', 'text_domain' ),
'search_items' => __( 'Buscar notificación', 'text_domain' ),
'not_found' => __( 'Sin resultados', 'text_domain' ),
'not_found_in_trash' => __( 'Sin resultados en la papelera', 'text_domain' ),
'featured_image' => __( 'Imagen destacada', 'text_domain' ),
'set_featured_image' => __( 'Definir imagen destacada', 'text_domain' ),
'remove_featured_image' => __( 'Quitar imagen destacada', 'text_domain' ),
'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ),
'insert_into_item' => __( 'Agregar a notificación', 'text_domain' ),
'uploaded_to_this_item' => __( 'Subido a esta notificación', 'text_domain' ),
'items_list' => __( 'Lista de notificación', 'text_domain' ),
'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),
'filter_items_list' => __( 'Filtrar lista de notificación', 'text_domain' ),
);
$capabilities = array(
'read_post' => 'read_post',
'read_private_posts' => 'read_private_posts',
);
$args = array(
'label' => __( 'Notificación', 'text_domain' ),
'description' => __( 'Gestión de notificaciones', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-testimonial',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capabilities' => $capabilities,
);
register_post_type( 'notificaciones', $args );
}
add_action( 'init', 'rda_notificacion', 0 );