Title: User Specific Content
Author: Bainternet
Published: <strong>2011-04-13</strong>
Last modified: 2016-12-11

---

Szukaj wtyczek

![](https://ps.w.org/user-specific-content/assets/banner-772x250.png?rev=606328)

Wtyczka **nie została przetestowana z trzema ostatnimi głównymi wydaniami WordPressa**.
Może nie być już utrzymywana lub obsługiwana, co może skutkować problemem ze zgodnością
z nowszymi wersjami WordPressa.

![](https://s.w.org/plugins/geopattern-icon/user-specific-content_ffffff.svg)

# User Specific Content

 Autor: [Bainternet](https://profiles.wordpress.org/bainternet/)

[Pobierz](https://downloads.wordpress.org/plugin/user-specific-content.1.0.6.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/user-specific-content/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/user-specific-content/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/user-specific-content/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/user-specific-content/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/user-specific-content/)

## Opis

This Plugin allows you to select specific users by user name, or by role name who
can view a specific post content or page content.

Basically it adds a meta box to the post or page edit screen and lets the user select
specific users by name or roles and then when you call that page content using “
the_content();” function it check using “the_content” filter if the current user
is one of the users you have selected or if his role match’s the roles you have 
selected and shows the content, otherwise it displays a message

**Funkcje:**

 * You can select any number of Users you want by there names.
 * Możesz wybrać dowolną liczbę ról użytkowników podając ich nazwy.
 * Easy Customization of content blocked massage per post, page or custom type.
 * Works with both posts,pages and custom types.
 * Content to none logged in users only.
 * Ustaw globalny komunikat dla blokowanej treści.
 * plugin blocks when using `the_content` filter and/or `the_excerpt` on admin selection.
 * Prosty panel administracyjny.
 * Block Multiple contents on a single post/page for multiple users Using ShortCode.
 * Nowy panel administracyjny.
 * Change metabox settings (new)
 * in option panel help tabs.

Wszelkie uwagi i sugestie mile widziane.

Sprawdź również moje [inne wtyczki](http://en.bainternet.info/category/plugins)

## Zrzuty ekranu

 * [[
 * User Specific Content metabox
 * [[
 * User Specific Content settings panel

## Instalacja

 1. Wyodrębnij plik zip i upuść jego zawartość w katalogu wp-content/plugins/ swojej
    instalacji WordPress.
 2. Następnie włącz wtyczkę w sekcji Wtyczki.
 3. Gotowe!

## Najczęściej zadawane pytania

  Installation Instructions

 1. Wyodrębnij plik zip i upuść jego zawartość w katalogu wp-content/plugins/ swojej
    instalacji WordPress.
 2. Następnie włącz wtyczkę w sekcji Wtyczki.
 3. Gotowe!

  I have Found a Bug, Now what?

Simply use the [Support Forum](https://wordpress.org/tags/user-specific-content?forum_id=10)
and thanks a head for doing that.

  How can I Use the ShortCode to limit the content to a specific user id?

Simply use:
 [O_U user_id=”1″]Content goes here[/O_U] where 1 is the user id. or
to specify multiple users you can use: [O_U user_id=”1,2,3″]Content goes here[/O_U]
where 1,2,3 are different user ids.

  How can I Use the ShortCode to limit the content to a specific user name?

Simply use:
 [O_U user_name=”Bainternet”]Content goes here[/O_U] where Bainternet
is the user name. or to specify multiple users you can use: [O_U user_name=”Bainternet,
Steve,david”]Content goes here[/O_U] where Bainternet,Steve,david are different 
user names.

  How can I Use the ShortCode to limit the content to a specific user by role?

Simply use:
 [O_U user_role=”Administrator”]Content goes here[/O_U] where Administrator
is the user role. or to specify multiple user roles you can use: [O_U user_name=”
Administrator,Author,Contributor”]Content goes here[/O_U] where Administrator,Author,
Contributor are different user roles.

  Can I use the shortcode more then once in a post?

YES you can use it as many times as you want eg:
 [O_U user_role=”Administrator”]
admin content goes here[/O_U] [O_U user_name=”Bainternet,Steve,david”]specific users
content goes here[/O_U]

  Can I change the blocked massage for a specific shortcode?

YES you can just add your blocked message as a shortcode parameter eg:
 [O_U user_role
=”Administrator” blocked_meassage=”admins only!”]admin content goes here[/O_U]

  Can I use the shortcode for logged in or looged out users?

Yep just use the `logged_status` parameter ex:
 [O_U logged_status=”in”]You only
see this if you are logged in[/O_U] Or [O_U logged_status=”out”]You only see this
if you are logged out[/O_U]

## Recenzje

![](https://secure.gravatar.com/avatar/0c26a35f6f0c1ad142bb8609ae3e1758b64db0eb755ce770d5156e9bbb8168e2?
s=60&d=retro&r=g)

### 󠀁[Amazing! Perfectly! Thank you so much!](https://wordpress.org/support/topic/amazing-perfectly-thank-you-so-much/)󠁿

 [Aleksandr Novik](https://profiles.wordpress.org/sashaborofey/) 2022-03-27

The plugin works! Just look at the FAQ, everything is written there in clear language!
The usernames may match (my case), so insert in functions.php code below to see 
user IDs: function true_user_id_column( $columns ) { $columns['user_id'] = 'ID';
return $columns; } add_filter('manage_users_columns', 'true_user_id_column'); function
true_user_id_column_content($value, $column_name, $user_id) { if ( 'user_id' == 
$column_name ) return $user_id; return $value; } add_action('manage_users_custom_column','
true_user_id_column_content', 10, 3); function true_user_id_column_style(){ echo'
<style>.column-user_id{width: 5%}</style>'; } add_action('admin_head-users.php','
true_user_id_column_style'); Then just select the ID of the desired user or users,
use the plugin shortcode and that’s it! P.S. The code for displaying user IDs in
the WP user menu is not mine. Unfortunately I can’t attach a link to the source.
I will only say that this is the misha.agency website.

![](https://secure.gravatar.com/avatar/8e1003bd8303460690a8afe42dfd252b6a250e2eeb100d27055bf7d4d16184d4?
s=60&d=retro&r=g)

### 󠀁[Does not work when Role name and slug are different](https://wordpress.org/support/topic/does-not-work-when-role-name-and-slug-are-different/)󠁿

 [munizasultan](https://profiles.wordpress.org/munizasultan/) 2018-08-07

It does not work correctly when user role name and role slug are different for example
Role name is 'Member’ and slug is 'abc_member’.

![](https://secure.gravatar.com/avatar/a3092f07c4fa9956c24f6c963402ed88fef47ee3720aecc7dec88e0dcfe9ccf2?
s=60&d=retro&r=g)

### 󠀁[Works as advertised](https://wordpress.org/support/topic/works-as-advertised-543/)󠁿

 [ssiruguri](https://profiles.wordpress.org/ssiruguri/) 2018-06-23

It does what I needed – restrict post read access to specific users

![](https://secure.gravatar.com/avatar/0cb5d998b8f927faebfcca2c1daa19b9d336f7d250f60e5c6d7261bfa4accbb9?
s=60&d=retro&r=g)

### 󠀁[Works just fine](https://wordpress.org/support/topic/works-just-fine-105/)󠁿

 [muttznutz](https://profiles.wordpress.org/muttznutz/) 2018-02-07

Initial problem, as my template wrote content from outside the the WP $content variable,
which wasn’t secured. Sorted it out with output buffering. All is good now.

![](https://secure.gravatar.com/avatar/df2e0cf57ff9f44be316030b7753ccf151d061aca729012d1e1523edbf6121d5?
s=60&d=retro&r=g)

### 󠀁[Works for me!](https://wordpress.org/support/topic/works-for-me-262/)󠁿

 [Fellipe Sanches](https://profiles.wordpress.org/fellipe-sanches/) 2017-06-16

It’s all 🙂

![](https://secure.gravatar.com/avatar/ad4c663dfec95b9a11e9e6384e8440f339d0064892ae0df8df1301932e7d8ac1?
s=60&d=retro&r=g)

### 󠀁[Nice, easy, sweet](https://wordpress.org/support/topic/nice-easy-sweet/)󠁿

 [holgerhubbs](https://profiles.wordpress.org/holgerhubbs/) 2017-06-15

Thank you!

 [ Przeczytaj 36 recenzji ](https://wordpress.org/support/plugin/user-specific-content/reviews/)

## Kontrybutorzy i deweloperzy

„User Specific Content” jest oprogramowaniem open source. Poniższe osoby miały wkład
w rozwój wtyczki.

Zaangażowani

 *   [ Bainternet ](https://profiles.wordpress.org/bainternet/)
 *   [ adsbycb ](https://profiles.wordpress.org/adsbycb/)

[Przetłumacz wtyczkę “User Specific Content” na swój język.](https://translate.wordpress.org/projects/wp-plugins/user-specific-content)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/user-specific-content/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/user-specific-content/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/user-specific-content/)
przez [RSS](https://plugins.trac.wordpress.org/log/user-specific-content/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

1.0.6 replaced deprecated `get_currentuserinfo()`.

1.0.5 Fixed Custom roles not working.

1.0.4 Fixed Shortcode not working.

1.0.3 Removed some leftover testing code.

1.0.2 Major updates:

#### Pls make sure to save settings in option panel after updating.

 * Added support for multiple roles per user.
 * Added better support for multisite.
 * Fixed settings panel not saving.
 * Added a „clear selection” to multiple select dropdowns.
 * Added `logged_status` shortcode parameter, See FAQ.
 * added hooks To allow metabox on custom post types in case the settings panel 
   can’t pick them up:
    filter hook: `USC_allowed_post_types` action hook: `USC_add_meta_box`

1.0.1 quick typo fix.

1.0.0 Major updates:
 * New option panel is now under the users menu. * Change checkboxes
to a select box. * set who can see the metabox based on capabilities. * new option
to enable\disable the metabox for each post type. * clean panel code. * clean metabox
code. * new plugin structure.

0.9.7 Added action filter to allow BuddyPress integration.

0.9.6 Fixed Typo in metabox description.

0.9.5 Fixed Global blocked message issue.

0.9.4 Fixed bug which caused role based limitation to break.

0.9.3 Added `user_specific_content_blocked` filter to allow insertion of login form
or whatever else you want.

0.9.2 cleaned up code comments

0.9.1 Fixed Typo (thanks to Sean Nittner) added backwards compatible and GNU.

0.9 Added nested shortcode option.

0.8 quick bug fix.

0.7 Major update,Plugin rewritten in OOP,

New shortcode implemented.
 New options panel to define User Specific MetaBox. New
admin panel. Run filter on `the_content` as well as `the_excerpt`.

0.6 Fixed all wp_debug warnings.

0.5 Fixed wp_debug warnings.

0.4 added simply logged-in user content only!
 quick fixed block by role bug.

0.3
 added none logged-in user content only!

0.2
 added pages support

0.1
 initial release

## Meta

 *  Wersja **1.0.6**
 *  Ostatnia aktualizacja **8 lat temu**
 *  Włączone instalacje **1 000+**
 *  Wersja WordPressa ** 2.9.2 lub nowszej **
 *  Testowano do **4.7.0**
 *  Język
 * [English (US)](https://wordpress.org/plugins/user-specific-content/)
 * Tag
 * [User Content](https://pl.wordpress.org/plugins/tags/user-content/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/user-specific-content/advanced/)

## Oceny

 4.3 na 5 gwiazdek.

 *  [  27 recenzji 5-gwiazdkowych     ](https://wordpress.org/support/plugin/user-specific-content/reviews/?filter=5)
 *  [  3 recenzje 4-gwiazdkowe     ](https://wordpress.org/support/plugin/user-specific-content/reviews/?filter=4)
 *  [  0 recenzji 3-gwiazdkowych     ](https://wordpress.org/support/plugin/user-specific-content/reviews/?filter=3)
 *  [  0 recenzji 2-gwiazdkowych     ](https://wordpress.org/support/plugin/user-specific-content/reviews/?filter=2)
 *  [  6 recenzji 1-gwiazdkowych     ](https://wordpress.org/support/plugin/user-specific-content/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/user-specific-content/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/user-specific-content/reviews/)

## Zaangażowani

 *   [ Bainternet ](https://profiles.wordpress.org/bainternet/)
 *   [ adsbycb ](https://profiles.wordpress.org/adsbycb/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/user-specific-content/)

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](http://en.bainternet.info/donations)