Skip to content

Instantly share code, notes, and snippets.

@JoeHana
Last active December 15, 2015 09:09
Show Gist options
  • Save JoeHana/5236483 to your computer and use it in GitHub Desktop.
Save JoeHana/5236483 to your computer and use it in GitHub Desktop.
Change dots and commas in price to '
<?php
/**
* Change dots and commas in price to ‘
*/
add_filter( 'wpcasa_property_price', 'custom_property_price' );
function custom_property_price( $price ) {
return str_replace( ',', '‘', str_replace( '.', '‘', $price ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment