Created
May 11, 2017 13:30
-
-
Save madeincosmos/eab163f60d3ea84ea8660aa6a014c14d to your computer and use it in GitHub Desktop.
Removes all WooCommerce product attributes from product name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_woocommerce_is_attribute_in_product_name( ) { | |
return false; | |
} | |
add_filter( 'woocommerce_is_attribute_in_product_name', 'custom_woocommerce_is_attribute_in_product_name' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment