Last active
August 29, 2015 14:24
-
-
Save WillBrubaker/f8a6bdd0a8755b5c2326 to your computer and use it in GitHub Desktop.
Prevent capitalization of order item meta
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
/** | |
* By default, WooCommerce will capitalize order item meta labels | |
* in some cases this may be undesirable, use this snippet to | |
* un-do the capitalization | |
* @see wc function wc_attribute_label in includes/wc-attribute-functions.php | |
*/ | |
add_filter( 'woocommerce_attribute_label', 'wooninja_attribute_label', 10, 2 ); | |
function wooninja_attribute_label( $formatted_label, $original_label ) { | |
return $original_label; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment