-
-
Save Roy-Oto/6d8104869365f733c2e75699cdbf505f to your computer and use it in GitHub Desktop.
How to change the notation of a sub-label
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
function wpf_dev_name_field_properties( $properties, $field, $form_data ) { | |
// Change sublabel values | |
$properties['inputs']['first']['sublabel']['value'] = '名前'; | |
$properties['inputs']['middle']['sublabel']['value'] = 'ミドルネーム'; | |
$properties['inputs']['last']['sublabel']['value'] = '苗字'; | |
return $properties; | |
} | |
add_filter( 'wpforms_field_properties_name' , 'wpf_dev_name_field_properties', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment