Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook allows you to show something other than the display name by default in user ID fields
Usage
add_filter( 'frm_user_id_display', 'display_name' );
Parameters
- None
Examples
Show the users' last name in the in user ID fields
add_filter('frm_user_id_display', 'frm_show_user_last_name');
function frm_show_user_last_name() {
return 'last_name';
}