changing role using s2member conditional shortcode
Posted on 2011-09-16
I'm trying to use the following conditional inside a page but it seems the php code is still being executed inside the shortcode when admin hits the page:
<?php $user = new WP_User(wp_get_current_user()->ID);
does it look correct? I do have php execution plugin installed on the server.
If admin hits the page and that code executes, then admin role gets downgraded to level 1 which is not what I want.