{"id":16016,"date":"2011-12-13T14:33:11","date_gmt":"2011-12-13T14:33:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/o3world-members-only-categories\/"},"modified":"2012-01-05T22:26:36","modified_gmt":"2012-01-05T22:26:36","slug":"o3world-members-only-categories","status":"publish","type":"plugin","link":"https:\/\/cy.wordpress.org\/plugins\/o3world-members-only-categories\/","author":8678537,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.03","stable_tag":"trunk","tested":"3.3.0","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"O3World Members-Only Categories","header_author":"Kris Gale (kris@o3world.com)","header_description":"","assets_banners_color":"","last_updated":"2012-01-05 22:26:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/o3world-members-only-categories\/","header_author_uri":"http:\/\/o3world.com","rating":1,"author_block_rating":0,"active_installs":10,"downloads":4575,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.03":"<p>Minor adjustment to show ALL top-level categories in settings panel, even those without posts.<\/p>","1.02":"<p>Fixed issue with menus, attachments, etc. being affected by pre_get_posts hook.<\/p>","1.01":"<p>This version addresses a bug with call to add_settings_section( ).<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566886","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566886","resolution":"1","location":"plugin"}},"screenshots":{"1":"Within <strong>Settings<\/strong> -&gt; <strong>Privacy<\/strong>, Any top-level category may be designated \"members-only\" .","2":"Edit a user's <strong>Profile<\/strong> to grant access to view content present in any \"members-only\" category."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1911,17838,610,529,1917],"plugin_category":[57,58],"plugin_contributors":[92136],"plugin_business_model":[],"class_list":["post-16016","plugin","type-plugin","status-publish","hentry","plugin_tags-access","plugin_tags-assign","plugin_tags-categories","plugin_tags-content","plugin_tags-users","plugin_category-taxonomy","plugin_category-user-management","plugin_contributors-kris-o3world","plugin_committers-kris-o3world"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/o3world-members-only-categories.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/o3world-members-only-categories\/trunk\/screenshot-1.png?rev=1566886","caption":"Within <strong>Settings<\/strong> -&gt; <strong>Privacy<\/strong>, Any top-level category may be designated \"members-only\" ."},{"src":"https:\/\/ps.w.org\/o3world-members-only-categories\/trunk\/screenshot-2.png?rev=1566886","caption":"Edit a user's <strong>Profile<\/strong> to grant access to view content present in any \"members-only\" category."}],"raw_content":"<!--section=description-->\n<p>If you'd like to make the content on your site visible only to certain users using categories, look no further!<\/p>\n\n<p>Designate certain categories as \"members-only\" via <strong>Privacy Settings<\/strong>.<\/p>\n\n<p>An administrator may then assign a user to them via <strong>Profile<\/strong>.<\/p>\n\n<p>Only content belonging to \"public\" categories (any top-level category you do not designate as \"members-only\"), and categories assigned to the logged-in user, and all subcategories of either, will be visible.<\/p>\n\n<p>I would like to thank the action hook <strong>pre_get_posts<\/strong>, without which this plugin would not have been possible.<\/p>\n\n<h3>O3World<\/h3>\n\n<p>This plugin was created by kris@o3world.com<\/p>\n\n<p>We're an online marketing strategy \/ custom web and mobile development agency in Philadelphia.<\/p>\n\n<p>Among other things, we love WordPress.<\/p>\n\n<p><a href=\"http:\/\/o3world.com\">http:\/\/o3world.com<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>o3world-members-only-categories.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress<\/li>\n<li>Within <strong>Settings<\/strong> -&gt; <strong>Privacy<\/strong> you'll see a new section titled <strong>Members-Only Categories<\/strong>. This is a listing of all your top-level categories. Tick the checkbox next to those you would consider \"private.\"<\/li>\n<li>To grant a user access to one or more of those categories, tick the checkboxes at the bottom of their <strong>Profile<\/strong> in a new section also titled <strong>Members-Only Categories<\/strong>. Only a user who can edit users (administrator) may do this.<\/li>\n<li>Log out of WordPress, and log in as that user. The content on your site should now be filtered by \"public\" and \"members-only\" categories.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>If \"User Access Manager\" exists, why must this plugin also exist?<\/dt>\n<dd><p>While <a href=\"http:\/\/wordpress.org\/extend\/plugins\/user-access-manager\"><strong>User Access Manager<\/strong><\/a> is a fine plugin, it may be cumbersome to grant access to one or more user groups upon editing each and every post.<\/p>\n\n<p>By contrast, with this plugin, you need only consider a category as \"members-only,\" and any content created within it will automaticaly be viewable only to those users assigned to it.<\/p>\n\n<p>If you'd like to redirect a user to a different page upon logging in, instead of <strong>Profile<\/strong>, you might try <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wordpress-login-redirect\/\"><strong>WordPress Login Redirect<\/strong><\/a> or something similar.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.03<\/h4>\n\n<p>Specify hide_empty argument (set to false) in call to get_categories, so that ALL top-level categories are shown.<\/p>\n\n<h4>1.02<\/h4>\n\n<p>Added logic to pre_get_posts hook to return $query as-is when $query-&gt;query_vars[ 'suppress_filters' ] is set and true.<\/p>\n\n<h4>1.01<\/h4>\n\n<ul>\n<li>Add empty callback function 'o3_moc_edit_categories', referenced in add_settings_section( ).<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Designate categories as &quot;members-only&quot; via &#039;Privacy Settings.&#039; Assign them to users via &#039;Profile.&#039;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16016"}],"author":[{"embeddable":true,"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kris-o3world"}],"wp:attachment":[{"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16016"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16016"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16016"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16016"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16016"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}