Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Change Default Display Name (Powered by yeahhub.com)
- */
- function change_display_name( $user_id ) {
- $info = get_userdata( $user_id );
- $args = array(
- 'ID' => $user_id,
- 'display_name' => $info->first_name . ' ' . $info->last_name
- );
- wp_update_user( $args );
- }
- add_action('user_register','change_display_name');
Add Comment
Please, Sign In to add comment