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

5 Responses to Prevent users from accessing backend

  1. Bastien November 18, 2013 at 5:29 pm #

    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

    • antonio November 19, 2013 at 7:09 am #

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

  2. antonio November 15, 2013 at 6:55 am #

    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

    • Bastien November 15, 2013 at 4:38 pm #

      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

      • antonio November 18, 2013 at 8:01 am #

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

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share