CPT Información Financiera
// Register Custom Post Type
function cpt_info_financiera() {
$labels = array(
'name' => _x( 'Información Financiera', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Información Financiera', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Información Financiera', 'text_domain' ),
'name_admin_bar' => __( 'Información Financiera', 'text_domain' ),
'archives' => __( 'Listado', 'text_domain' ),
'attributes' => __( 'Atributos', 'text_domain' ),
'parent_item_colon' => __( 'Elemento superior', 'text_domain' ),
'all_items' => __( 'Todos los elementos', 'text_domain' ),
'add_new_item' => __( 'Agregar nuevo elemento', 'text_domain' ),
'add_new' => __( 'Agregar nuevo', 'text_domain' ),
'new_item' => __( 'Nuevo elemento', 'text_domain' ),
'edit_item' => __( 'Editar elemento', 'text_domain' ),
'update_item' => __( 'Actualizar elemento', 'text_domain' ),
'view_item' => __( 'Ver elemento', 'text_domain' ),
'view_items' => __( 'Ver elementos', 'text_domain' ),
'search_items' => __( 'Buscar elemento', 'text_domain' ),
'not_found' => __( 'No encontrado', 'text_domain' ),
'not_found_in_trash' => __( 'No encontrado en la papelera', 'text_domain' ),
'featured_image' => __( 'Imagen destacada', 'text_domain' ),
'set_featured_image' => __( 'Editar imagen', 'text_domain' ),
'remove_featured_image' => __( 'Eliminar imagen destacada', 'text_domain' ),
'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ),
'insert_into_item' => __( 'Insertar en el elemento', 'text_domain' ),
'uploaded_to_this_item' => __( 'Subido a este elemento', 'text_domain' ),
'items_list' => __( 'Listado de elementos', 'text_domain' ),
'items_list_navigation' => __( 'Navegación de elementos', 'text_domain' ),
'filter_items_list' => __( 'Filtro de elementos', 'text_domain' ),
);
$args = array(
'label' => __( 'Información Financiera', 'text_domain' ),
'description' => __( 'Información Financiera', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-media-spreadsheet',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
'show_in_rest' => true,
);
register_post_type( 'info_financiera', $args );
}
add_action( 'init', 'cpt_info_financiera', 0 );