Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce - In Product Data, Attributes tab
- // show term slugs instead of term names
- add_filter( 'woocommerce_product_attribute_term_name', 'custom_product_attribute_term_name', 10, 2 );
- function custom_product_attribute_term_name( $term_name, $term ) {
- return $term->slug;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement