Title: Customize admin box based on user role.
Last modified: August 20, 2016

---

# Customize admin box based on user role.

 *  [Deleted account](https://wordpress.org/support/users/ajacom/)
 * (@ajacom)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/customize-admin-box-based-on-user-role/)
 * Ok first of all. **Thank you for such an amazing plugin with such an incredible
   documentation**.
 * I couldn’t find this though:
 * 1) Currently the admin box for P2P displays only for the admin user. I want to
   display it for a specific user role as well.
 * 2) This one is more tricky: I want that only posts that belong to the current
   user (as author) are displayed in the box. On both ‘from’ and ‘to’ sides.
 * I don’t need you to tell me how to do it. Just let me know if it can be done (
   I think it should), and maybe a little direction on which functions or hooks 
   to use. That’s all !
 * Thank you!
 * [http://wordpress.org/extend/plugins/posts-to-posts/](http://wordpress.org/extend/plugins/posts-to-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/customize-admin-box-based-on-user-role/#post-3169731)
 * 2) is actually the easier one. Just use the ‘p2p_connectable_args’ filter: [https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-filters](https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-filters)
 * > Currently the admin box for P2P displays only for the admin user.
 * That’s not true; it displays for any role that has the appropriate ‘edit_posts’
   capability, for both concerned post types. See the `can_edit_connections()` method
   in `core/side.php`.

Viewing 1 replies (of 1 total)

The topic ‘Customize admin box based on user role.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [scribu](https://wordpress.org/support/users/scribu/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/customize-admin-box-based-on-user-role/#post-3169731)
 * Status: not resolved