A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
coding-topic
sp_add_membership($usergroup_id, $user_id)
Avatar
Stan Dahl

75 Posts
(Offline)
1
Oct 19, 2015 - 2:34 pm
Print

Hi,

Two quick questions on this:

1) what do these functions return?

sp_add_membership($usergroup_id, $user_id)

sp_remove_membership($usergroup_id, $user_id)

2) I take it $user_id is the same as the WP User Id?

Thanks for your help!

Avatar
Yellow Swordfish
Glinton, England

16436 Posts
(Offline)
2
Oct 19, 2015 - 3:24 pm
Print

sp_add_membership() returns a true or false determined by the success of the operation.

sp_remove_membership() will always return a true as it can not really fail!

And user_id is the global users ID as created when they first registered for the site.

sp_Check
This post answers the topic
andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support, Marcus (Simple:Press)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Lorena Affleck
samantardh
PatrickAlawl
Hannelore Gaither
Margarito Nowacki
Elwood Mcclendon
samantaerx
Larue Cordeaux
Jerrold Stockman
Forum Stats:
Groups: 7
Forums: 17
Topics: 10071
Posts: 79393

 

Member Stats:
Guest Posters: 608
Members: 16976
Moderators: 0
Admins: 4

Most Users Ever Online
1170
Currently Online
Guest(s)
1
Currently Browsing this Page

1 Guest(s)