Affiliates Auto Role

Update : Use Affiliates Role instead. The plugin adds the Affiliate role to the new user instead of replacing it like Affiliates Auto Role does and it works with all versions of the Affiliates plugins.

Here’s a little WordPress plugin that creates the Affiliate role and assigns it to newly added affiliates.

Click to download Affiliates Auto Role 1.1.0

This plugin requires Affiliates Pro or Affiliates Enterprise to automatically assign the role to the user account related to a new affiliate.

15 Responses to Affiliates Auto Role

  1. dundadasociety January 22, 2013 at 7:56 pm #

    Does this work with the enterprise version?

    • kento January 26, 2013 at 11:46 am #

      Yes it does but I would only use this plugin in very specific cases, i.e. normally I wouldn’t. Caution is advisable, if you assign an admin account it will change the user’s role and will not be an admin anymore.

  2. kento September 17, 2013 at 8:37 am #

    The updated version 1.1.0 is available now. This adds the role to the user account which is related to the new affiliate.

  3. 13CampA September 17, 2013 at 6:16 pm #

    Thanks, appreciate your quick respond!

  4. kfallis October 23, 2013 at 8:58 pm #

    Sorry how does this work? I downloaded and installed but don’t see config to tell it what role to make them?

  5. kfallis October 23, 2013 at 9:04 pm #

    oh does it just create an affiliate user role ?

    • antonio October 24, 2013 at 5:45 am #

      Hi,
      as description says: “creates the Affiliate role and assigns it to newly added affiliates.”
      Role “Affiliate” is assigned to new affiliates.
      cheers

  6. kfallis October 23, 2013 at 9:05 pm #

    and is there anyway it can just be set to pending -ie needs approval – rather than auto creating?

    • antonio October 24, 2013 at 5:49 am #

      Hi,
      when a new affiliate is created, automatically is approved. You could disallow affiliates registration (on Affiliates->Options), and add affiliates manually (on Affiliates->Manage Affiliates) when they send a form.

  7. kfallis October 25, 2013 at 4:26 am #

    what happens if they register and they are already registered in our database (ie with another role?)

    • antonio October 25, 2013 at 5:14 am #

      Then “Affiliate” role is added, and now the user has two roles.
      Beware, WordPress users table only show the first role, but if you filter by role “Affiliate”, you could see that user has this new role.

  8. Dean November 28, 2013 at 7:48 pm #

    If you are not adverse to modifying the plugin, by adding in $user->remove_role( ‘subscriber’ ); above the $user->add_role( ‘affiliate’ ); they will be shown as affiliate in the user table (please note I had already created this role with the Members plugin.

    • antonio November 29, 2013 at 6:42 am #

      Hi,
      In your case it may be correct, but in general, the user using the plugin expects to add the role, but not to be removed to “registered”.
      Maybe WordPress should be corrected to show all the roles in table.
      In any case, thanks for the suggestion,
      cheers

  9. rony June 11, 2018 at 9:04 pm #

    how to assign role just Affiliate .. i try to my wesite i did’t see the option ..there only ..administrator.edito etc ..

Leave a Reply

Share