-
I have a bbPress forum with the plugin bbPress Private Groups. It can give users access to specific forums based on their user role, but works with a registration hook. It doesn’t work with UserPro, likely because my users require approval. Here’s what the developer asked. Can you help so that I can get these two plugins working together on my site??
“ok, my plugin ‘private groups’ allocates bbpress group access by code hooks to an action within a bbpress function called bbp_user_register in /bbpress/includes/core/sub-actions.php, which in turn hooks to a wordpress action called ‘user_register’.
add_action (‘bbp_user_register’, ‘pg_role_group’) ;
then
function bbp_user_register( $user_id = 0 ) {
do_action( ‘bbp_user_register’, $user_id );
}and
add_action( ‘user_register’, ‘bbp_user_register’, 10);
where pg_role_group does the allocation.
In this way the group access is set up as part of the wordpress user_register action.
I suspect that Userpro is overwriting or interacting with the wordpress action ‘user_register’ to do the blocking, so that my code doesn’t get executed.
Since UserPro is a paid plugin, I suggest you contact them, and basically tell then the above.
If they have an action within their code I can hook to, then I’m quite happy to add it, all I need is a php code line(s) along the lines of if userpro active then hook my action to this action.”
You must be logged in to reply to this topic.