Skip to content

Instantly share code, notes, and snippets.

@andykeith
Last active February 4, 2019 16:47
Show Gist options
  • Save andykeith/f069a0c5d52ace5279d6fe5b3acdc94f to your computer and use it in GitHub Desktop.
Save andykeith/f069a0c5d52ace5279d6fe5b3acdc94f to your computer and use it in GitHub Desktop.
WooCommerce Product Table - add currency to regular price custom field in WooCommerce.
<?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