Productos
if ( ! function_exists('amk_productos_custom_post_type') ) {
// Register Custom Post Type
function amk_productos_custom_post_type() {
$labels = array(
'name' => _x( 'Productos', 'Post Type General Name', 'amk' ),
'singular_name' => _x( 'Producto', 'Post Type Singular Name', 'amk' ),
'menu_name' => __( 'Productos', 'amk' ),
'name_admin_bar' => __( 'Post Type', 'amk' ),
'archives' => __( 'Item Archives', 'amk' ),
'attributes' => __( 'Item Attributes', 'amk' ),
'parent_item_colon' => __( 'Superior', 'amk' ),
'all_items' => __( 'Todos', 'amk' ),
'add_new_item' => __( 'Agregar Nuevo Producto', 'amk' ),
'add_new' => __( 'Agregar Nuevo', 'amk' ),
'new_item' => __( 'Agregar Producto', 'amk' ),
'edit_item' => __( 'Editar Producto', 'amk' ),
'update_item' => __( 'Actualizar Producto', 'amk' ),
'view_item' => __( 'Ver Producto', 'amk' ),
'view_items' => __( 'Ver Productos', 'amk' ),
'search_items' => __( 'Buscar Producto', 'amk' ),
'not_found' => __( 'No se han encontrado Resultados', 'amk' ),
'not_found_in_trash' => __( 'No hay Productos en la Papelera', 'amk' ),
'featured_image' => __( 'Featured Image', 'amk' ),
'set_featured_image' => __( 'Set featured image', 'amk' ),
'remove_featured_image' => __( 'Remove featured image', 'amk' ),
'use_featured_image' => __( 'Use as featured image', 'amk' ),
'insert_into_item' => __( 'Insert into item', 'amk' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'amk' ),
'items_list' => __( 'Items list', 'amk' ),
'items_list_navigation' => __( 'Items list navigation', 'amk' ),
'filter_items_list' => __( 'Filter items list', 'amk' ),
);
$args = array(
'label' => __( 'Producto', 'amk' ),
'description' => __( 'Catálogo de Productos', 'amk' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'productos', $args );
}
add_action( 'init', 'amk_productos_custom_post_type', 0 );
}