Title: O3World Members-Only Categories
Author: kris-o3world
Published: <strong>13 december 2011</strong>
Last modified: 5 januari 2012

---

Plugins zoeken

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

![](https://s.w.org/plugins/geopattern-icon/o3world-members-only-categories.svg)

# O3World Members-Only Categories

 Door [kris-o3world](https://profiles.wordpress.org/kris-o3world/)

[Download](https://downloads.wordpress.org/plugin/o3world-members-only-categories.zip)

 * [Details](https://nl.wordpress.org/plugins/o3world-members-only-categories/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/o3world-members-only-categories/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/o3world-members-only-categories/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/o3world-members-only-categories/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/o3world-members-only-categories/)

## Beschrijving

If you’d like to make the content on your site visible only to certain users using
categories, look no further!

Designate certain categories as “members-only” via **Privacy Settings**.

An administrator may then assign a user to them via **Profile**.

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.

I would like to thank the action hook **pre_get_posts**, without which this plugin
would not have been possible.

### O3World

This plugin was created by kris@o3world.com

We’re an online marketing strategy / custom web and mobile development agency in
Philadelphia.

Among other things, we love WordPress.

[http://o3world.com](http://o3world.com)

## Schermafbeeldingen

[⌊Within Settings -> Privacy, Any top-level category may be designated "members-
only" .⌉⌊Within Settings -> Privacy, Any top-level category may be designated "members-
only" .⌉[

Within **Settings** -> **Privacy**, Any top-level category may be designated “members-
only” .

[⌊Edit a user's Profile to grant access to view content present in any "members-
only" category.⌉⌊Edit a user's Profile to grant access to view content present in
any "members-only" category.⌉[

Edit a user’s **Profile** to grant access to view content present in any “members-
only” category.

## Installatie

 1. Upload `o3world-members-only-categories.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the **Plugins** menu in WordPress
 3. Within **Settings** -> **Privacy** you’ll see a new section titled **Members-Only
    Categories**. This is a listing of all your top-level categories. Tick the checkbox
    next to those you would consider “private.”
 4. To grant a user access to one or more of those categories, tick the checkboxes 
    at the bottom of their **Profile** in a new section also titled **Members-Only 
    Categories**. Only a user who can edit users (administrator) may do this.
 5. 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.

## FAQ

  If “User Access Manager” exists, why must this plugin also exist?

While [**User Access Manager**](https://wordpress.org/extend/plugins/user-access-manager)
is a fine plugin, it may be cumbersome to grant access to one or more user groups
upon editing each and every post.

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.

If you’d like to redirect a user to a different page upon logging in, instead of**
Profile**, you might try [**WordPress Login Redirect**](https://wordpress.org/extend/plugins/wordpress-login-redirect/)
or something similar.

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“O3World Members-Only Categories” is open source software. De volgende personen 
hebben bijgedragen aan deze plugin.

Bijdragers

 *   [ kris-o3world ](https://profiles.wordpress.org/kris-o3world/)

[Vertaal “O3World Members-Only Categories” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/o3world-members-only-categories)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/o3world-members-only-categories/),
haal de [SVN repository](https://plugins.svn.wordpress.org/o3world-members-only-categories/)
op, of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/o3world-members-only-categories/)
via [RSS](https://plugins.trac.wordpress.org/log/o3world-members-only-categories/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.03

Specify hide_empty argument (set to false) in call to get_categories, so that ALL
top-level categories are shown.

#### 1.02

Added logic to pre_get_posts hook to return $query as-is when $query->query_vars[‘
suppress_filters’ ] is set and true.

#### 1.01

 * Add empty callback function ‘o3_moc_edit_categories’, referenced in add_settings_section().

#### 1.0

 * Initial release.

## Meta

 *  Versie **1.03**
 *  Laatst geüpdatet **15 jaar geleden**
 *  Actieve installaties **10+**
 *  WordPress versie ** 3.0.0 of nieuwer **
 *  Getest t/m **3.3.0**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/o3world-members-only-categories/)
 * Tags
 * [access](https://nl.wordpress.org/plugins/tags/access/)[assign](https://nl.wordpress.org/plugins/tags/assign/)
   [categories](https://nl.wordpress.org/plugins/tags/categories/)[content](https://nl.wordpress.org/plugins/tags/content/)
   [users](https://nl.wordpress.org/plugins/tags/users/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/o3world-members-only-categories/advanced/)

## Waarderingen

 1 van 5 sterren.

 *  [  0 5 sterren beoordelingen     ](https://wordpress.org/support/plugin/o3world-members-only-categories/reviews/?filter=5)
 *  [  0 4 sterren beoordelingen     ](https://wordpress.org/support/plugin/o3world-members-only-categories/reviews/?filter=4)
 *  [  0 3 sterren beoordelingen     ](https://wordpress.org/support/plugin/o3world-members-only-categories/reviews/?filter=3)
 *  [  0 2 sterren beoordelingen     ](https://wordpress.org/support/plugin/o3world-members-only-categories/reviews/?filter=2)
 *  [  1 1 ster beoordeling     ](https://wordpress.org/support/plugin/o3world-members-only-categories/reviews/?filter=1)

[Je beoordeling](https://wordpress.org/support/plugin/o3world-members-only-categories/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/o3world-members-only-categories/reviews/)

## Bijdragers

 *   [ kris-o3world ](https://profiles.wordpress.org/kris-o3world/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/o3world-members-only-categories/)