Title: Custom role settings
Last modified: March 2, 2023

---

# Custom role settings

 *  Resolved [iamdan](https://wordpress.org/support/users/iamdan/)
 * (@iamdan)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-roles-9/)
 * I’m working on a site with a custom login to view the front end. I’m trying to
   hide media library items from non logged in users. This is very easy to do with
   based off the regular wp-admin log in, but is there a way to somehow set a custom
   role based off of a user session or something similar?
    -  This topic was modified 3 years, 2 months ago by [iamdan](https://wordpress.org/support/users/iamdan/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP Folio Team](https://wordpress.org/support/users/buildwps/)
 * (@buildwps)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-roles-9/#post-16524846)
 * Hi [@iamdan](https://wordpress.org/support/users/iamdan/),
 * Thank you for contacting our support.
 * You can grant access to your protected WordPress files by user roles with our
   Prevent Direct Access (PDA) Gold. But, with the [PDA Membership Integration](https://preventdirectaccess.com/extensions/simple-wordpress-membership-plugin/)
   extension, you can set the permission to your custom membership types.
 * You can take a look at [How to Encrypt WordPress Media Files](https://preventdirectaccess.com/docs/encrypt-wordpress-media-files/)
 * If you need further assistance or have any questions, please let us know. You
   can also ping us via email at hello(at)preventdirectaccess.com

Viewing 1 replies (of 1 total)

The topic ‘Custom role settings’ is closed to new replies.

 * ![](https://ps.w.org/prevent-direct-access/assets/icon-256x256.jpg?rev=3263305)
 * [Prevent Direct Access - Protect WordPress Files](https://wordpress.org/plugins/prevent-direct-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/prevent-direct-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/prevent-direct-access/)
 * [Active Topics](https://wordpress.org/support/plugin/prevent-direct-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prevent-direct-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prevent-direct-access/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP Folio Team](https://wordpress.org/support/users/buildwps/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/custom-roles-9/#post-16524846)
 * Status: resolved