Discourse WordPress 설정에 접근하려면 역할에 어떤 wp_capability가 필요합니까?

여러분, 안녕하세요.

모두 잘 지내고 계시길 바랍니다.
관리자 권한이 없는 개발자가 다음 페이지에 접근해야 하는 상황이 있습니다:

이를 위해 필요한 WP 기능(capability)이 무엇인지 알고 싶습니다.
우리는 이미 플러그인 추가, 편집 및 설치 권한을 부여했습니다!

문제를 보여주는 스크린샷입니다.

도와주셔서 감사합니다.

감사합니다!

Support Development Contribute > Bug

Looking at Github, it would seem the capability used is manage_options.

Hello @RickU,

There are 2 ways to allow your developer to have access to this page, one is

Step 1: Install User Role Editor Plugin and create a custom role for your developer and assign manage_options capability, but this will also allow him to have access to admin related menus like settings, etc, so to avoid that, install Adminimize Plugin and remove admin menus for that particular role

Step 2: Create a user with the new role you have created and share the credentials with your developer.

Another is, add a custom code in your theme / child theme (if child theme is active) which will allow you to set custom capability for the Discourse admin menu access, create a custom role using code and assign the new capability to the role and create a user with the custom role and share the credentials with your developer, but in this method your developer can only see the page but can’t edit/update/save any changes, since manage_options capability is not provided which is required to save options in WordPress. If you want I can add the code on github and share the link here.

Try any of the above and let me know, :slight_smile:

I will be taking a look at this solution. It seem simple. I have been doing a lot of updates to our side and schedule has been crazy. I will update of the out come or route taken.

Thanks so much! :smiley:

Diggin out this one

Is there any way to give specific user role access to the WP Discourse panel in the latest version?

It sounds a bit of an overload to give them full manage_options option and then hide all the elements. We try to keep our wp instance somewhat light :frowning:

The access situation remains the same as discussed above.

Do you have an example of a plugin that uses role-based access to its admin panel that you like, i.e. along the lightweight lines you suggested? I’m interested in improving this kind of functionality and would like to canvas pain points / desired functionality.

In our use case, we are using Learndash LMS and using WP Discourse to post their custom post types lesson and topic into our forum. It has their own instructor roles. While instructors can edit the content, they don’t have access to WP discourse panel.