Statistics: Posted by candy — February 23rd, 2011, 6:07 am
$variable
$array['element']
preg_match('~p=(\d+)~i', $_SERVER['HTTP_REFERER'], $matches);
$requirement = is_protected_by_s2member($matches[1]);
echo 'I\'m sorry, you need a level ', $requirement['s2member_level_req'], ' membership to access the content at ', $_SERVER['HTTP_REFERER'], '. Please click on this button to get it.';
// And you'd have the button here.
Statistics: Posted by Cristián Lávaque — February 21st, 2011, 11:19 am
Statistics: Posted by candy — February 21st, 2011, 8:05 am
$__id - optional argument. Defaults to current $post->ID in The Loop.
$__type - optional argument. One of: `category`, `tag`, `post`, `page`, `singular`, `uri`. Defaults to: `singular`.
$check_user - optional ( consider the current User? ) defaults to: false.
$check = is_protected_by_s2member(15);
Statistics: Posted by Cristián Lávaque — February 20th, 2011, 11:14 pm
Statistics: Posted by candy — February 20th, 2011, 9:29 pm
Statistics: Posted by candy — February 20th, 2011, 11:32 am