• Resolved omc123

    (@omc123)


    Hi, If I allow users to delete accounts from frontend with this function wp_delete_user(), does it disconnect and delete everything? Or do I have to disconnect before delete?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @omc123

    Yes, deleting the user with the wp_delete_user() function is the right way of deleting WordPress users, as that fires the “delete_user” function where developers can hook functions to remove extra data on user deletion. We are also hooked to that action, so deleting the user with the wp_delete_user() function will delete the data stored by us as well. Including:

    • the link between the WordPress user and the social media account ( stored in our <wp-preffix>social_users table )
    • the user meta
    • the data connected to the avatar attachment and the file itself

    So it is not necessary to unlink the accounts before the account deletion.

    Best regards,
    Laszlo.

    Thread Starter omc123

    (@omc123)

    ?@laszloszalvak Thank you for your informative detail. Great plugin.

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @omc123

    I am glad I could help!

    If you have any other question just let us know!

    Note: I also noticed that you submitted a review. Thank you very much! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Delete users/disconnect’ is closed to new replies.