WordPress.org

Forums

User Role Editor
Custom capabilities (5 posts)

  1. efisher82
    Member
    Posted 1 year ago #

    I'm new to this plugin. How would I go about creating a custom capability allowing editing of posts of only a certain type (i.e. one created by another plugin, not pages or normal posts)?

    https://wordpress.org/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

  3. efisher82
    Member
    Posted 1 year ago #

    That gives instructions that involve making a new custom post type within the plugin. But how should I do it if the custom post type already exists?

  4. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Please read more carefully.
    According to that post you need to check at the plugin code how it defines custom post type, e.g. 'card' or something else and what capability it uses for it. Sometimes plugin creates own custom post type, but uses default 'post' capability to manage access to it.

    After that you may add the set of custom user capabilities for that custom post type, as described at the end of the post I noted above, on the example of 'card' custom post type - 10 custom capabilities.

  5. efisher82
    Member
    Posted 1 year ago #

    Thank you I checked after my last reply and I will try that with the plugin. Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Role Editor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic