latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

RSS and search not protected

Home Forums Community Forum RSS and search not protected

This topic contains 0 replies, has 1 voice. Last updated by  2046 3 years, 3 months ago.

Topic Author Topic
Posted: Thursday Sep 19th, 2013 at 5:58 pm #59701
2046
Username: 2046

hello,

I found out that the RSS and search results are not protected. They are not protected no matter if the Aternative protection is ON (http://www.s2member.com/forums/topic/urgent-protected-content-not-protected/).

The protected content in our case is all under selected category,
WP: 3.6
S2M: 130802

I did the protection by my self like:

function FeedExcluder($query) {
 if (!is_user_logged_in() && ($query->is_feed || $query->is_search)) {
   $query->set('cat','-1');
 }
return $query;
}
 
add_filter('pre_get_posts','FeedExcluder');

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.