Revista Digital
if ( ! function_exists('revista_digital_cpt') ) {
// Register Custom Post Type
function revista_digital_cpt() {
$labels = array(
'name' => _x( 'Revistas Digitales', 'Post Type General Name', 'javob' ),
'singular_name' => _x( 'Revista Digital', 'Post Type Singular Name', 'javob' ),
'menu_name' => __( 'Revista Digital', 'javob' ),
'parent_item_colon' => __( 'Revista Padre:', 'javob' ),
'all_items' => __( 'Todos las Revistas', 'javob' ),
'view_item' => __( 'Ver Revista', 'javob' ),
'add_new_item' => __( 'Agregar Nueva Revista', 'javob' ),
'add_new' => __( 'Agregar Nueva', 'javob' ),
'edit_item' => __( 'Editar Revista', 'javob' ),
'update_item' => __( 'Actualizar Revista', 'javob' ),
'search_items' => __( 'Buscar Revista', 'javob' ),
'not_found' => __( 'No se encontrĂ³ nada', 'javob' ),
'not_found_in_trash' => __( 'No se encontrĂ³ nada en la papelera', 'javob' ),
);
$args = array(
'label' => __( 'revista_digital', 'javob' ),
'description' => __( 'Administrador de Revistas Digitales', 'javob' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'taxonomies' => array( 'categoria_revista' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-book-alt',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'revista_digital', $args );
}
// Hook into the 'init' action
add_action( 'init', 'revista_digital_cpt', 0 );
}