Support » Fixing WordPress » Custom Roles and Capabilities for specific plugins

  • Hello all,

    Anybody know how to create custom capabilities for a custom role that I created. For instance i’ve created a new role named “Employer” in which I want him/her to have the same capabilities as a subscriber, but to also be able to access a certain plugin that I have installed. The plugin is a resume and job posting, which creates extra tabs in the dashboard and I want it to have it so my new role can only access this? Here is the link for the plugin:

    Any help is much appreciated! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • since the plugin says that it “allows the admin to…”, the I’d suggest you look through the plugin code for where it limits to admin, and add your employer role to that code.

    I’ve checked and it allows any roles that are able to edit posts, in which they are also able to edit the plugins features. The lowest it goes is a Contributor, but i only want my role to only edit this plugin and not have access to edit posts etc…. Here is the code within the plugin

    define( 'MANAGEMENT_PERMISSION', 'edit_pages' ); //The minimum privilege required to manage plugin.
    define( 'SUBTABLE', $wpdb->prefix . 'rsjp_submissions' );
    define( 'JOBTABLE', $wpdb->prefix . 'rsjp_job_postings' );


    Moderator Andrew Nevins


    Front-end developer

    You may have better luck posting in that plugin’s subforum.

    Yes I did thanks, still no replys, thought I could post in both just in case as I’m hoping to have this resolved within a couple days. Appreciate your concern:)

    Not having seen the plugin, I was thinking more that the code where they actually used the features, you’d just put some code like

    if ( current_user_can( 'employer' ) )
        echo "Hi, dear employer! Glad seeing you again!";

    to limit who could do what

    Moderator Ipstenu (Mika Epstein)


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    I’m closing this post, Since you posted here:

    Please don’t make duplicate posts again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Roles and Capabilities for specific plugins’ is closed to new replies.