Support » Plugin: Simple Links » hide simple links for non-admin roles

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mat Lipe


    Hello Francesco,

    Although, it is on the list for a future release, their are currently no capabilities to adjust for the Simple Links themselves.

    Currently the only way to prevent non-admin users from using the links it to remove it from the menu. This does not prevent other users from getting to the links directly if they have the url, but it should get you closer.

    Add this to your theme’s functions.php file to remove the menu for non-admins.

    add_action('admin_menu', 'remove_s_links');
    function remove_s_links(){
        if( !current_user_can('administrator') ){




    ok, it works, thank for the reply

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hide simple links for non-admin roles’ is closed to new replies.