Additional Content Restriction Options
A fairly standard method of content restriction in WordPress plugins is to restrict post content past a certain point. This is often achieved by using the ‘more’ tag. This is valuable for posts where you may want to show 5 paragraphs for example but lock down the last 5.
In WooCommerce Memberships I can either lock the page down with an excerpt (which is too short and doesn’t play well with homepages) or use the shortcodes.
The shortcodes can create some cool combinations but for standard posts it means a shortcode to protect the post, a shortcode to display to non-members and, one or more shortcodes to display to people who may be members but not holding the memberships relevant to the post.
It would be a lot easier to use the ‘more’ tag or a shortcode to protect everything after a point, using the membership meta box to set post permissions and displaying the restriction notices as normal.
Last updated: December 3, 2015