Prevent users from accessing backend

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


Comments

5 responses to “Prevent users from accessing backend”

  1. 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

    1. Hi,
      This text is set on: affiliates-enterprise / lib / core / class-affiliates-registration.php line 342, you could change this code.
      cheers

  2. 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

    1. 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

      1. Hi,
        that’s the standard url. This topic might help you.
        cheers

Share