Advertisement
daymobrew

WooCommerce - no variation info

Jun 21st, 2022
1,209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: WooCommerce - no variation info
  4. Plugin URI: https://www.damiencarbery.com
  5. Description: Do not display variation information in Checkout page or order emails because the variation name is appended to the product name.
  6. Author: Damien Carbery
  7. Version: 0.1
  8. */
  9.  
  10. // From: woocommerce/includes/wc-template-functions.php
  11. //apply_filters( 'woocommerce_display_item_meta', $html, $item, $args );
  12. add_filter( 'woocommerce_display_item_meta', '__return_null' );
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement