• Hi,

    is something like this possible for editor user level to manage slides?

    I have tried with this peace of code in my functions.php file in theme, ,, but no luck,, can anyone help 🙂

    //----------------------------------------------------------/
    //  for editor add widgets & menu caps!
    //----------------------------------------------------------/
    
    $role_object = get_role( 'editor' );
    $role_object->add_cap( 'edit_theme_options' );

    https://wordpress.org/plugins/smart-slider-2/

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

    (@nextendweb)

    Hi!

    You could try to open smart-slider-2.php in the plugin’s root folder and find this line:

    if(is_admin()){
    

    and replace that with this one:

    if(current_user_can( 'edit_theme_options' )){
    
    Thread Starter Kresimir Pendic

    (@gorostas)

    Thanks NextendWeb,

    It workd with:

    function nextend_smart_slider2_menu_page(){
        add_menu_page( 'Smart Slider 2', 'Sliders', 'edit_theme_options', 'nextend-smart-slider2', 'nextend_smart_slider2', 'dashicons-format-gallery');
    }

    cheers

    Plugin Author Nextendweb

    (@nextendweb)

    Ohh I’m glad to read it. Hopefully in the future we have a little time to create an user interface for this feature. Nowadays we’re refactoring and optimizing the whole plugin from zero. 🙂

    Hi,
    I have tried both methods listed above and the first one has worked for me but with a slight modification.

    function nextend_smart_slider2_menu_page(){
        add_menu_page( 'Smart Slider 2', 'Sliders', 'edit_pages', 'nextend-smart-slider2', 'nextend_smart_slider2', 'dashicons-format-gallery');
    }

    I changed the capability to “edit_pages” and then it worked. The second method suggested, doesn’t work at all.

    Plugin Author Nextendweb

    (@nextendweb)

    Hey Katenutri,

    Thanks a lot for your comment. I highly appreciate it!

    Have a nice day! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Enable slider menu in admin panel for Editor role’ is closed to new replies.