{"id":175,"date":"2012-08-24T21:33:11","date_gmt":"2012-08-25T04:33:11","guid":{"rendered":"http:\/\/www.tipsandtricks-hq.com\/eMember-demo\/?page_id=175"},"modified":"2013-03-14T22:39:31","modified_gmt":"2013-03-15T05:39:31","slug":"section-protection-demo","status":"publish","type":"page","link":"https:\/\/www.tipsandtricks-hq.com\/eMember-demo\/section-protection-demo","title":{"rendered":"Section Protection Demo"},"content":{"rendered":"<p>You can do some cool stuff with eMember&#8217;s section protection feature. I will give you a simple example in this page to demonstrate it.<\/p>\n<p>Lets define what behavior we want first&#8230;<\/p>\n<ul>\n<li>I want to show some content to a user who comes to page as an anonymous user (someone who is not logged in as a member)<\/li>\n<li>I want to show a text message with a link in green to users who are logged into the site as a free member<\/li>\n<li>I want to show a\u00a0YouTube\u00a0video to users who are logged into the site as a silver member<\/li>\n<\/ul>\n<p>Now, do the following to see how this dynamic content serving will work to show different content to your users based on their membership status:<\/p>\n<ol>\n<li>Copy the URL of this page and open it in a different browser where you are not logged into this site as a member (alternatively log out from the site). Take note of the content you can see now.<\/li>\n<li>Log into the site as a free member and come back to this page (you should see a message in a green box that you couldn&#8217;t see earlier)<\/li>\n<li>Log into the site as a silver member and come back to this page (you should see an additional YouTube video in this page that you couldn&#8217;t see earlier)<\/li>\n<\/ol>\n<p>If you log into the site as a member then you will see more content that is not visible to you right now.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>You can do some cool stuff with eMember&#8217;s section protection feature. I will give you a simple example in this page to demonstrate it. Lets define what behavior we want first&#8230; I want to show some content to a user who comes to page as an anonymous user (someone who is not logged in as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/eMember-demo\/wp-json\/wp\/v2\/pages\/175"}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/eMember-demo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/eMember-demo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/eMember-demo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/eMember-demo\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/eMember-demo\/wp-json\/wp\/v2\/pages\/175\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/eMember-demo\/wp-json\/wp\/v2\/media?parent=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}