Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alicolville/0e7a5fcd0e427ecfdb486be9bc1c09ea to your computer and use it in GitHub Desktop.
Save alicolville/0e7a5fcd0e427ecfdb486be9bc1c09ea to your computer and use it in GitHub Desktop.
Change Weight Tracker measurement titles
/**
* 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