by nitaonline » November 21st, 2010, 3:26 am
Look in the plugin's built-in documentation, in its menu under "Quick-Start Guide" as it has a ton of examples for "Conditionals" and also calls / filters / hooks you can use straight in PHP. Probably your only / key issue will be that you'll make calls outside the loop. But it's much better than looking directly in the DB, i.e. outside the plugin; think e.g. about permanence issues, if the s2Member plugin ever shuffles data around you'll be scrambling to adapt, so it's usually much better to talk to the plugin, instead of the DB.
Anyway, it's mostly in the user meta table, which means (de)serializing. It's a long-term gripe I have; I wish the WP core team would just categorically prescribe other plugins from cramming stuff into that table which becomes spaghetti-structured very quickly. But that's a comment on the side.