adapt deleted user code
Would love to: adapt deleted user code
Awesome topic, thank you for great code.
Want to know how to adapt the code to: re-assign posts to another user before deleting
I have integration with wpForo (gVectors forum software).
when deleting a user manually, if wpForo detects any posts assigned, it allows me to re-assign those posts to a different user.
I’d love to know how to do that mechanically by passing in a 2nd user id to re-assign them to.
Thanks
That would have to be coded into the function, there’s info here https://developer.wordpress.org/reference/functions/wp_delete_user/. Since it’s a custom function we can’t modify that behavior as a feature request within WP Fusion, but if you can’t figure it out feel free to contact support.