Created
July 10, 2019 08:50
-
-
Save alicolville/0e7a5fcd0e427ecfdb486be9bc1c09ea to your computer and use it in GitHub Desktop.
Change Weight Tracker measurement titles
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
/** | |
* Rename some of the measurement fields | |
* | |
* @param $supported_measurements | |
* | |
* @return mixed | |
*/ | |
function yk_docfit_filter_measurements( $supported_measurements ) { | |
$supported_measurements[ 'navel' ][ 'title' ] = 'Bellybutton'; | |
$supported_measurements[ 'waist' ][ 'title' ] = '3 Fingers ABB'; | |
$supported_measurements[ 'neck' ][ 'title' ] = '3 Fingers BBB'; | |
return $supported_measurements; | |
} | |
add_filter( 'wlt-measurements', 'yk_docfit_filter_measurements' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment