Last active
February 4, 2019 16:47
-
-
Save andykeith/f069a0c5d52ace5279d6fe5b3acdc94f to your computer and use it in GitHub Desktop.
WooCommerce Product Table - add currency to regular price custom field in WooCommerce.
This file contains 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
<?php | |
// Assuming you have cf:_regular_price as a column in your table... | |
add_filter( 'wc_product_table_data_custom_field__regular_price, function( $price, $product ) { | |
return '€' . $price; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment