Advertisement
daymobrew

Show attribute name and value in WooCommerce

Aug 30th, 2019
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Show attribute name and value in WooCommerce
  4. Plugin URI: https://www.damiencarbery.com/
  5. Description: Show the attribute name beside the attribute value in WooCommerce.
  6. Author: Damien Carbery
  7. Version: 0.1
  8.  
  9. */
  10. add_filter( 'woocommerce_product_variation_title_include_attributes', 'dcwd_product_variation_title_include_attributes', 10, 2 );
  11. function dcwd_product_variation_title_include_attributes( $should_include_attributes, $product ) {
  12.     return false;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement