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