Community Support Forums — WordPress® ( Users Helping Users ) — 2010-10-30T09:59:32-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1127 2010-10-30T09:59:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1127&p=4434#p4434 <![CDATA[Questions about s2Member Functions in plugins]]>
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

Statistics: Posted by madsem — October 30th, 2010, 9:59 am


]]>