Catalogo Productos
simple catalogo de productos
if ( ! function_exists('fw_productos_post_type') ) { // Register Custom Post Type function fw_productos_post_type() { $labels = array( 'name' => _x( 'Productos', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Producto', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Productos', 'text_domain' ), 'name_admin_bar' => __( 'Post Type', 'text_domain' ), 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), 'all_items' => __( 'Todos', 'text_domain' ), 'add_new_item' => __( 'Agregar nuevo producto', 'text_domain' ), 'add_new' => __( 'Agregar producto', 'text_domain' ), 'new_item' => __( 'Nuevo producto', 'text_domain' ), 'edit_item' => __( 'Editar producto', 'text_domain' ), 'update_item' => __( 'Actualizar producto', 'text_domain' ), 'view_item' => __( 'Ver producto', 'text_domain' ), 'search_items' => __( 'Buscar producto', 'text_domain' ), 'not_found' => __( 'Producto no encontrado', 'text_domain' ), 'not_found_in_trash' => __( 'No hay productos', 'text_domain' ), ); $args = array( 'label' => __( 'productos', 'text_domain' ), 'description' => __( 'Productos', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-products', '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 ); } // Hook into the 'init' action add_action( 'init', 'fw_productos_post_type', 0 ); }