Restrict User Content


This is a simple plugin that helps to clean up the admin side of WordPress by only showing the currently logged in user’s content the Post/Page/Media pages.

For the Media list, you can provide a list of user ID’s who’s Media will also be available to logged in users. It is highly recommended to create a user for this purpose.


This plugin was inspired by an article by Sarah Gooding on wpmudev and uses portions of that code. Please see the source code for further details.


  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add any additional user id’s in the settings page.


Why would I want to give users access to other users media?

This would allow you to create set of standard or default media available to all users. In the case where users are creating content and don’t have an image, they can choose one from the “Media Pool”.

Why create a new user just for media?

If you create all of your site content with one user and allow that user’s media to be shared, then other users could get to your users content from the Media Library page and (depending on the role assiged to them) potentially modify the content.

You can use the above to your advantage by creating example content for users and uploading media to it.

Contributors & Developers

“Restrict User Content” is open source software. The following people have contributed to this plugin.




  • plugin created


  • bug fix for undefined variable on re-activation because I’m a hack.
  • added proper cleanup if plugin is deleted – don’t know why you’d want to do something like that, but there it is.


  • minor fixes for the Media Library limitation


  • minor cleanup and fix


  • cleanup of code base
  • security fixes
  • Only showing the Mine count for posts/pages – thanks for the suggestion drbellerive!