Hi,
When a user deletes his BP account, he gets redirected to the mainpage which can be set in BP Dashboard. Would it be possible to create a page saying that the account has been successfully deleted or with a pop up window?
Or is the best way just to add a page with saying that the account has been deleted successfully and let the user redirect to that page?Thanks for your suggestion.
Regards
DanielHi Daniel,
I agree with what Tosin suggested. Using a custom page is a good idea.Regards
BrajeshHi guys,
Ok thanks I thought so too. Currently I can’t find it where I can change the slug to redirect the user to the account deleted page.
Would it be possible to point me where I can make the slug change so then I can set up the account deletion page?
Thank you and have a nice day.
Regards
DanielHi Daniel,
you may use the following code to do that./** * Redirect user to a page after account deletion. */ add_action( 'bp_core_deleted_account', function () { // $url = "http://yoursite.com/some-page/"; $url = site_url( '/account-deleted/' ); bp_core_redirect( $url ); } );
Regards
BrajeshHi Daniel,
You are welcome.I hope it works for you. All the best.
Regards
BrajeshHi Daniel,
Thank you for confirming that it works.If you are using our BuddyPress Account deactivator plugin, you can setup the url in plugin’s admin setting.
PS:- In future, Please open a new topic for different question. That helps us in keeping the forums meaningful for members having same issue in future.
Regards
Brajesh
You must be logged in to reply to this topic.