-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue/1965 add ability to only show first letter of name fields #2140
Issue/1965 add ability to only show first letter of name fields #2140
Conversation
@Mwalek, please test. Try using Arabic, Cyrillic and other scripts. Test the |
@mrcasual Overall, everything worked as expected. For Asian languages like Chinese, the entire first character was shown rather than a single initial, which is likely expected behavior due to how these scripts represent names. The behavior was a bit weird when using emojis and parentheses, but not sure we want to support such edge cases (see image). Some of my tests can be observed at the following URL: Filter TestingI also tested the filter add_filter('gk/gravityview/fields/name/initials', 'customize_initials', 10, 2);
function customize_initials($display_value, $gravityview) {
$display_value = strtolower($display_value);
return $display_value;
} All good! The filter successfully altered the display of initials (English ones), converting them to lowercase as expected. |
💾 Build file (53dfa91).