• Resolved julianoe_

    (@julianoe_)


    Long time user of your plugin i like it because it just works.

    Although i’m facing a problem on my current project (WPMU by the way).

    I’m creating a custom user role with some code and the plugin Capability Manager Enhanced. This user role can only do things within one custom post type (very basic).

    My problem is: the “Duplicate this” appears and works as intended in the edit page but not in the action row within the /wp-admin/edit.php?post_type=mycpt page.

    I’ve done some tests: if i grant this user role the right to edit the post type “post” it works well.
    How can i make the “duplicate this” link appear on my custom post type main page without granting the user role access to “post” capabilities. How does the plugin handle the capabilities?

Viewing 1 replies (of 1 total)
  • Thread Starter julianoe_

    (@julianoe_)

    A little more info.

    By scanning the code i can see that you test for ‘edit_posts’ in the ‘dt_duplicate_post_link function’.

    So here is my very simple question : how can i do to create a function that creates this link on my custom post type with my ‘edit_mycpt’ capability

    Thanks in advance for your help on this

Viewing 1 replies (of 1 total)
  • The topic ‘Duplicate post for custom user role ? (capabilities)’ is closed to new replies.