Ready to get started?Download WordPress


Usernoise modal feedback / contact form
[resolved] Deactivate for not logged in users (6 posts)

  1. Ninos
    Posted 2 years ago #

    how can I deactivate this plugin for not logged in users? Is there a function, hook or something like that?



  2. Lecma
    Posted 2 years ago #

    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!! :)


  3. Ninos
    Posted 2 years ago #

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

  4. hridaya
    Posted 2 years ago #

    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

  5. Ninos
    Posted 2 years ago #

    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..

  6. Lecma
    Posted 2 years ago #

    Thanks Ninos, I think your solution is the only one working for the time being... :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic