PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Questions about s2Member Functions in plugins

s2Member Plugin. A Membership plugin for WordPress®.

Questions about s2Member Functions in plugins

Postby madsem » October 30th, 2010, 9:59 am

Hi

I have been writing a plugin for Wordpress and to make it work for different user levels. Though none of the constants or functions of s2Member work! If i use: current_user_is() function it just spits out a php error saying the function does not exist. In the end I just had to use the wp_get_current_user() and pull the s2Member details from the wp_capabilities section.

This brought my attention to something else.IN the object there are some items s2member_access_level0 - 4 . Now the user at the time i was logged in at level 2, so why on earth were all the level access variables above level 2 set to 1? This is saying that a level 2 member has access to areas 3 and 4 do, which is not correct!

Any help here would be appreciated, I really could do with using the s2member functions in the plugin rather than having to rip out of the core wordpress array ( mainly for update reasons )

thanks
User avatar
madsem
Registered User
Registered User
 
Posts: 26
Joined: October 26, 2010

Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests

cron