Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Brett Shumaker

    (@brettshumaker)

    Hi –
    I’m not specifying a particular capability to give access to edit ‘Staff Members’ – I just have ‘capability_type’ set to ‘page.’ So that means that any user that can edit a page can edit ‘Staff Members.’

    The theme – or perhaps a user role editing plugin – you’re using on your site must be restricting ‘Editor’ access to pages. I just checked the plugin on a fresh install of WP and the ‘Editor’ user role has access to edit Staff Members.

    The following suggestion will require editing the core plugin. If you make this edit and update the plugin in the future, you will lose your changes.
    If you need to override something your theme is doing, you could use the User Role Editor plugin to add a new capability (‘edit_staff’ for example) to your ‘Author’ and ‘Editor’ users. Then you would need to change simple-staff-list.php line 171 from:
    'capability_type' => 'page',
    to:
    'capability' => array('edit_staff'),

    I plan on adding a filter here in the future so users can change the settings for the post type if they need to.

    Thread Starter doantientai94

    (@doantientai94)

    Hi @brettshumaker,

    Thank you for your response. I have checked again and yes, the Editor can edit. It was my mistake last time.

    I also would like to ask if there is anyway that an Author use the plugin the same way they write and edit the default Post of WordPress?

    Plugin Author Brett Shumaker

    (@brettshumaker)

    Hey – no worries.

    Just change simple-staff-list.php line 171 from:
    'capability_type' => 'page',
    to:
    //'capability_type' => 'page',

    Thread Starter doantientai94

    (@doantientai94)

    Thank you very much! Now I understand!

    Thread Starter doantientai94

    (@doantientai94)

    Problem Solved!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Why only Administrator can use the plugin?’ is closed to new replies.