This topic contains 1 reply, has 2 voices. Last updated by Bruce 4 years ago.
Topic Author | Topic |
---|---|
Posted: Friday Dec 14th, 2012 at 2:41 am #34516 | |
I am trying to protect a software package located outside wordpress along with other WPMU sites within subdomains. I need to retrieve user levels from these “remote sites” I am currently able to retrieve all WP data via the include once wp-load.php system and while I am able to restrict access based on if a user is logged in in or not, i need to pull the s2 membership level in order to allow access in that matter as well. if (current_user_can(“access_s2member_level1”)) Works perfectly from within my main domain but once I include it in a subdomain it fails. It does work properly for the super admin user only but fails for any other user. My cookies are set to define(‘COOKIE_DOMAIN’, ‘.domain.com’); within the wp-config.php I have exhausted my logic about how to grab this data, any help would be appreciated. |