Closed Peter-HVD closed 4 years ago
In lines 61 & 157 you hard-code the user's account URL, but BP allows for the exact URL to be filterable.
You should use the bp_loggedin_user_domain() function and change these lines to:
bp_loggedin_user_domain()
61: return bp_loggedin_user_domain() . "settings";
return bp_loggedin_user_domain() . "settings";
and
157: $base_path = bp_loggedin_user_domain() . "account/";
$base_path = bp_loggedin_user_domain() . "account/";
Cheers
Thank you for sharing this, @Peter-HVD!
I just made a commit that should fix this: https://github.com/robertstaddon/buddypress-woocommerce/commit/484bd9192dd468f879d9dcd15c458ba627b6573b
In lines 61 & 157 you hard-code the user's account URL, but BP allows for the exact URL to be filterable.
You should use the
bp_loggedin_user_domain()
function and change these lines to:61:
return bp_loggedin_user_domain() . "settings";
and
157:
$base_path = bp_loggedin_user_domain() . "account/";
Cheers