• Resolved VR Webs

    (@net4earning)


    Hi,

    first of all many thanks for this great plugin.

    i have created a post type and set the Capability Type to “post” then the post type shows in dashboard menu, but once i set it to some custom Capability Type, for example “sitter” the post type do not shows in dashboard menu.

    i tried to find more info on “Capability Type” but didn’t succeed.

    plz guide me on this issue.

    thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    hi @net4earning

    I think unless you have explicit reason to tinker with the capabilities for the given post type, chances are you’re best leaving it alone at post.

    I’ll be the first to admit our plugin here doesn’t have complete capabilities UI, though I know I’ve tried as a 3rd party addon at https://github.com/tw2113/custom-post-type-ui-capabilities/ but I’m not sure exactly how well it’s working, and has been awhile since I really looked at it.

    Is there anything specific you’re trying to achieve with this? or is it something you just happened to notice when you changed the capability type away from post, and felt desire to reach out about?

    Thread Starter VR Webs

    (@net4earning)

    Thanks Michael for quick reply.

    actually i’m trying to give users various capability to add/edit various CPTs. i’m using ultimate member plugin. the CPT capability are not showing in add/edit role screen. thats why i tried this.

    is their way where i can control user capability for those CPTs

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Gotcha.

    Well, as far as I’m aware of, though I haven’t had a great way to fully test it due to lack of capabilities customization needs, the plugin I linked to above should work if you’re explicitly looking for UI to do the capabilities mapping for a given post type.

    However, if you’re unsure or don’t want to try it out, then we have the following hooks that are applied right before registration of both the individual post types as well as the taxonomies. You could hook in to them and fill in the missing arguments around capabilities.

    Post types:
    https://github.com/WebDevStudios/custom-post-type-ui/blob/master/custom-post-type-ui.php#L510-L520

    Taxonomies:
    https://github.com/WebDevStudios/custom-post-type-ui/blob/master/custom-post-type-ui.php#L721-L733

    Hope this helps get you to where you need with your setup.

    Thread Starter VR Webs

    (@net4earning)

    Thanks Micheal for the info

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPT not showing in menu when Capability Type added’ is closed to new replies.