• Resolved imjustabill33

    (@imjustabill33)


    I’d like to allow some roles to access the messages and announcements from the wp-admin section. Is that possible? Is there a particular role or capability that I could give a user to grant them that access?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    you can use fep_admin_cap filter hook to give any role admin access. use with caution. this will give that role user all admin right for this plugin.

    Thread Starter imjustabill33

    (@imjustabill33)

    Thanks Shamim. I’ll give it a try. I really like the plugin so far, and if I can get this to work, I will be upgrading to pro.

    Thanks again!

    Thread Starter imjustabill33

    (@imjustabill33)

    Hi Shamim,

    I tried that and it allowed a user with the permission I passed in to see the “Extensions” and “Settings”, but they still can’t see “All Messages”, “All Announcements” and “New Announcements”

    Is there any role I can give a user to see those three things in the admin area?

    Thanks.

    Plugin Author Shamim Hasan

    (@shamim51)

    add following code in your theme’s (child theme’s if any) functions.php. Then access your admin area. You will see those links. Then remove this code.

    
    fep_add_caps_to_roles( array( 'administrator' ) );
    

    Change administrator with your role which your want to give access. it is an array, you can add more than one role.

    Thread Starter imjustabill33

    (@imjustabill33)

    Thank you! That is exactly what I was looking for.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Allow users to access admin menu’ is closed to new replies.