Statistics: Posted by fx_keith — November 28th, 2011, 2:59 pm
<?php
add_filter ("ws_plugin__s2member_check_post_level_access_excluded", "my_s2_exclusions");
add_filter ("ws_plugin__s2member_check_page_level_access_excluded", "my_s2_exclusions");
/* Now build the function. */ function my_s2_exclusions ($s2_says = FALSE)
{
global $post; /* Global ```$post`` object reference. */
/**/
if (!empty ($post->ID) && c_ws_plugin__s2member_sp_access::sp_access ($post->ID, "read-only"))
return /* Exclude it, because it's allowed by Specific Post/Page Restrictions. */ ($my_s2_says = true);
/**/
return /* Otherwise return whatever s2Member says. */ $s2_says;
}
?>
Statistics: Posted by Jason Caldwell — November 22nd, 2011, 6:10 pm
Statistics: Posted by fx_keith — November 21st, 2011, 1:03 pm