Created
April 5, 2017 02:39
-
-
Save JoeHana/937c9d20c32e8920bf808b3bf5be573f to your computer and use it in GitHub Desktop.
Modify Measurements
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 | |
/** | |
* Modify Measurements | |
*/ | |
add_filter( 'wpsight_measurements', 'custom_measurements' ); | |
function custom_measurements ( $measurements ) { | |
$measurements = array( | |
'' => '', | |
'm2' => 'm²', | |
'sqft' => 'sq ft', | |
'sqyd' => 'sq yd', | |
'acres' => 'acre(s)' | |
); | |
return $measurements; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment