Override auto role for single membership level in Wishlist Member?
-
Just wondering if this is possible – I am working on a live project at the moment which is requiring the addition of BuddyPress and bbPress functionality to a membership site running on Wishlist Member. Specs for the site as follows:
WP: 3.6.1
bbPress: 2.4
BuddyPress: 1.8.1
Wishlist Member: 2.71.1747
Site URL: http://www.thelawofattraction.comThe idea is that we are implementing a paid-for membership level managed by WLM and Infusionsoft. At the moment I have set auto role to ‘Blocked’ and reset the assigned bbPress user roles so that all existing (non-paying) members are set to this.
However, I’d like all new members registering as paid-for (Platinum+, platinumplus) to be assigned the Participant role.
I tried like so in my functions.php:
add_filter('bbp_get_user_role_map','custom_bbPress_role_map'); function custom_bbPress_role_map($role_map){ $role_map['platinumplus'] = bbp_get_participant_role(); return $role_map; }
but although I can echo out the result of bbp_get_user_role_map() and see that this has worked in theory the Platinum+ members remain set as ‘Blocked’.
First time using bbPress so please forgive me if I’ve overlooked anything really obvious here, but any help would be appreciated.
Best,
Iain
- You must be logged in to reply to this topic.