Thanks for the great question.~ and thanks for the heads up Cristián.Yes, this is possible.Until we have this integrated into the UI panel for s2Member,
you can use this Filter/hack to accomplish what you need to.
1. Protect "all" Pages, or "all" Posts using s2Member's UI panel in the Dashboard.
2. Now, create this directory and file:
/wp-content/mu-plugins/s2-hacks.php- Code: Select all
<?php
add_filter ("ws_plugin__s2member_check_post_level_access_excluded", "my_post_page_exclusions");
add_filter ("ws_plugin__s2member_check_page_level_access_excluded", "my_post_page_exclusions");
function my_post_page_exclusions ($excluded = false)
{
$excluded_posts = array (3345, 49343); $excluded_pages = array (3004, 39494); if (($excluded_posts && is_single ($excluded_posts)) || ($excluded_pages && is_page ($excluded_pages)))
return ($excluded = true);
}
?>