Please or Register to create posts and topics.

add/remove users in categories etc

I would like to add /remove user from categories, how can I do this programatically in php?

 

Also I need to  restrict access even amongst logged in users. So I have modified code in includes/ forums.php check_access to restrict access to the forum based on wordpress custom capabilities. This is not satisfactory as the modifications will dissapear on update or re-install. Is there another way I can achieve this that will survive re-install/update?

@bolek

As far as I know you can create user groups in the backend forum/Usergroups.

You can assign these again under Forum/Structure in the Category.

 

 

Nur ein Biker weiß, warum ein Hund seinen Kopf aus einem Autofenster steckt.
Only a biker knows why a dog sticks its head out a car window.

Thanks @biker

What I/m after is PHP code interface to generate Asgaros user groups. I create word-press users  from within my own plugin. I would also like to create and assign user groups to the new users programatically. If I can find out where user groups are stored and how they are linked to users that would be helpful.

I think only @asgaros can help with that.

Nur ein Biker weiß, warum ein Hund seinen Kopf aus einem Autofenster steckt.
Only a biker knows why a dog sticks its head out a car window.

Thanks @Biker,

That’s what I’m trying to do. How do I get an answer from @asgaros on the PHP required to do what I need?

I hope he gets an email notification when he is @ mentioned.

Nur ein Biker weiß, warum ein Hund seinen Kopf aus einem Autofenster steckt.
Only a biker knows why a dog sticks its head out a car window.