catalogo
Catalogo de produto online
if ( ! function_exists('catalogo_custom_post_type') ) { // Register Custom Post Type function catalogo_custom_post_type() { $labels = array( 'name' => _x( 'produtos', 'Post Type General Name', 'orcamento' ), 'singular_name' => _x( 'produto', 'Post Type Singular Name', 'orcamento' ), 'menu_name' => __( 'Produtos', 'orcamento' ), 'parent_item_colon' => __( 'Superior:', 'orcamento' ), 'all_items' => __( 'Todos', 'orcamento' ), 'view_item' => __( 'Ver produto', 'orcamento' ), 'add_new_item' => __( 'Cadastrar novo produto', 'orcamento' ), 'add_new' => __( 'Cadastrar produto', 'orcamento' ), 'edit_item' => __( 'Editar produto', 'orcamento' ), 'update_item' => __( 'Atualizar produto', 'orcamento' ), 'search_items' => __( 'Pesquisar produto', 'orcamento' ), 'not_found' => __( 'Nenhum produto encontrado ', 'orcamento' ), 'not_found_in_trash' => __( 'Produto não cadastrado em nosso site', 'orcamento' ), ); $args = array( 'label' => __( 'produtos', 'orcamento' ), 'description' => __( 'Catálogo de produtos', 'orcamento' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'show_in_admin_bar' => true, 'menu_position' => 20, 'menu_icon' => '', 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'produtos', $args ); } // Hook into the 'init' action add_action( 'init', 'catalogo_custom_post_type', 0 ); }