Your cart is currently empty!
Prevent users from accessing backend
—
by
Hi,
We don’t want our users to be redirected to wp-admin/profile.php for profile edition. We’re using Buddypress. Is it possible to use Buddypress fields instead?
Regards,
Bastien
Posted in Affiliates Enterprise
Comments
5 responses to “Prevent users from accessing backend”
Hi Antonio,
The link you provided helps to block access to wp-admin but doesn’t really address our concern.
Is there a way to modify the standard url to use the buddypress url instead? It shouldn’t be that hard with $bp Global :
$bp->displayed_user->domain gives the profile page URL of the user.
Can we integrate this URL via, for example, a custom function?
Regards,
Bastien
Hi,
This text is set on: affiliates-enterprise / lib / core / class-affiliates-registration.php line 342, you could change this code.
cheers
Hi,
I assume you mean after an affiliate is logued. You can use “redirect_url” attribute, for example:
[affiliates_login_redirect redirect_url="http://www.example.com/goto/"]
cheers
Hi antonio,
Sorry for the lack of details, we meant before even logging in/registering. When going to the /affiliate-area, users are prompted to fill in required field in their profile first. The word profile is a link to /wp-admin/profile.php
We’d like this link to redirect to /members/USER/profile/edit/group/1 (the BuddyPress General Settings Profile Edit page)
And use the BuddyPress fields to fill in the required information.
Kind regards,
Bastien
Hi,
that’s the standard url. This topic might help you.
cheers