Support » Plugin: Usernoise modal feedback / contact form » [Plugin: Usernoise modal feedback / contact form] Deactivate for not logged in users

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

    (@lecma)

    I’m having the same question.. I’m using this plugin since v1.0 and it wasn’t like this.. now after updating the plugin, non-logged in users can see it and this is what I do not need..

    Another issue is about ‘users Role’ I don’t want editors to see the feedback from other users.. is it possible to specify it only to administrators??

    Appreciate any tip!! 🙂

    Best,

    Ninos

    (@ninos-ego)

    hope with a hook I can chance the settings (DEFINE()), but haven’t found somethink like that in the code.. :/

    hridaya

    (@hridaya)

    Hello i have same problems if anyone Got the solution?
    I do not want to show the Feedback Button for Logged in Users.

    Thank you

    Ninos

    (@ninos-ego)

    this is just a hack (because I set the style for the button to display: none)

    add_filter('un_button_class', 'un_hide_button');
    function un_hide_button($classes)
    {
    	if( !is_user_logged_in() )
    		array_push($classes, 'un-hide');
    	return $classes;
    }

    And then write into the style.css

    .un-hide {
    	display: none;
    }

    Hope the devs can add some more hooks, maybe to the beginning of the plugin, so I can deactivate it correctly..

    Thanks Ninos, I think your solution is the only one working for the time being… 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Usernoise modal feedback / contact form] Deactivate for not logged in users’ is closed to new replies.