We'll create fresh WordPress site with Secret Content installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Simply tick the checkbox “Show this to logged in visitors only” This works on a per post / per page basis. Not yet enabeled for custom post types.
You do not need to insert custom functions or shortcodes. You do not need to change theme template files.
This plugin works by filtering WordPress core functions.
If you “hide” a parent page, the children will be hidden in the menu as well.
Technically the filters are modifying the query or the result of databse calls on standard WP features: wp_get_nav, wp_list_pages, $posts, previous_post, next_post.
When ticking the checkbox, the plugin saves a key/value pair in the postmeta database table.
When uninstalling the plugin, the entrys to the postmeta table are deleted.
Suggestions, Questions and feedback are welcome.