• Resolved pachxata

    (@pachxata)


    if I change the user’s first name and last name from wordpress dashboard, and after that the user logs in again with his Telegram, the user’s changed first name and last name on the site will be overwritten as the user wrote on Telegram. How can this be fixed?

    • This topic was modified 4 months, 2 weeks ago by pachxata.
Viewing 1 replies (of 1 total)
  • Plugin Author Irshad Ahmad

    (@irshadahmad21)

    Needs a little bit of custom code as given in the docs.

    // Avoid updating first and last name from Telegram
    add_filter( 'wptelegram_login_update_user_data', function ( $userdata ) {
    unset( $userdata['first_name'], $userdata['last_name'] );

    return $userdata;
    } );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.