• Hi big up for the plugin one litle improvement will be a good thing like :

    Add a setting to chose between the capabilitie role for ‘who can view the admin menu of the plugin’

    because now it’s in every php page of the plugin and not centralised and it can be change only in the source code :p

    the thing is now, and it’s a good thing, because the capabilities role is on every single submenu page the new improvement setting may add capabilities to switch role for every submenu.

    Thanks a lot !

    https://www.ads-software.com/plugins/quick-featured-images/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Good idea, jibsou!

    Why would you prefer that?

    Plugin Author Martin Stehle

    (@hinjiriyo)

    .

    Thread Starter JibsouX

    (@jibsoux)

    yeah it’s beacause i used it for some client and i add that in function php :

    remove_menu_page(‘quick-featured-images-overview’);

    only for not admin role

    $current_user = new WP_User(wp_get_current_user()->id);
    $user_roles = $current_user->roles;
    foreach($user_roles as $role) {

    if (($role != ‘administrator’)

    like that only pure admin can view the menu but it will be a good thin to propose the hook in the setting of the plusgin like uhm .. checkbox ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting to change role view (admin menu)’ is closed to new replies.