<?php
register_taxonomy('product_brand', array('product'), array(
'hierarchical' => true,
'update_count_callback' => '_wc_term_recount',
'label' => __('Product Brands', 'reha'),
'labels' => array(
'name' => __('Product Brands', 'reha'),
'singular_name' => __('Product Brand', 'reha'),
'menu_name' => _x('Brands', 'Admin menu name', 'reha'),
'search_items' => __('Search Product Brands', 'reha'),
'all_items' => __('All Product Brands', 'reha'),
'edit_item' => __('Edit Product Brand', 'reha'),
'update_item' => __('Update Product Brand', 'reha'),
'add_new_item' => __('Add New Product Brand', 'reha'),
'new_item_name' => __('New Product Brand Name', 'reha'),
'popular_items' => __('Popular Product Brands', 'reha'),
'separate_items_with_commas' => __('Separate Product Brands with commas', 'reha'),
'add_or_remove_items' => __('Add or remove Product Brands', 'reha'),
'choose_from_most_used' => __('Choose from the most used Product Brands', 'reha'),
'not_found' => __('No Product Brands found', 'reha'),
),
'show_ui' => true,
'query_var' => true,
'capabilities' => array(
'manage_terms' => 'manage_product_terms',
'edit_terms' => 'edit_product_terms',
'delete_terms' => 'delete_product_terms',
'assign_terms' => 'assign_product_terms',
),
'rewrite' => array(
'slug' => _x('product-brand', 'slug', 'reha'),
'with_front' => false,
'hierarchical' => true,
),
)
);
?>
Taxonomía que se registra en la gestión de productos de Woocommerce.
Permitirá crear marcas de los productos y asociarlos.
Permitirá crear marcas de los productos y asociarlos.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.