• Hello everybody,

    I am trying to change the default display name of a subscriber to his/her first name due to privacy policy. Apparently, some things changed recently as the here posted answers do not work in my function.php file anymore. I guess, the dropdown list at the display name selection is inhibiting old solutions before last year.
    Someone having an idea for an adapted code to proceed changing display name to first name at registration process? Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The problem is when a user first registers using the default form, their first name is unknown. All we have is user name and email. You’d need a custom form that collects first name (and other) data from the start. With such data, you can then use the ‘pre_user_display_name’ filter to set it as the submitted first name.

    Thread Starter vamosespanol22

    (@vamosespanol22)

    Thank you for your reply! The ‘pre_user_display_name’ filter is new for me. Earlier I tried with an action to set user display name to first name instead.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change default ‘display name’ to subscribers’ ‘first name’’ is closed to new replies.