This is a very open-ended, speculative question with lots of possible angles: has anyone worked with ways to restrict the access of certain uploads to a logged in user?
I.e., how can the site admin upload files and assign permissions to each one for certain logged-in users?
Could this entail an uploads directory called /this_user/ in wp-content/uploads/? And restrict access to that with .htaccess and is_logged_in? Or some kind of meta or custom field that assigns permissions and users for uploads?
Other answers here on WPAnswers deal with hotlinking protection, which is a different situation; I need to restrict to logged in users, all on the same domain.
Any ideas? Thanks
You can use
current_user_has_role
for thisAnd if the standard roles are not enough for you, then I would suggest to download the Members plugin by Justin Tadlock which enables you to add roles.