Support » Plugin: Comments Like Dislike » Only for registered users

  • Hello,
    is there a way to load this plugin only to registered users? I know that I can hide it in my theme, but I don’t want it to load at all if user is not logged in.

    is_user_logged_in() doesn’t work within a plugin…

    Thank you!

    • This topic was modified 2 years, 7 months ago by  .
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Happy Coders


    Hello scarbo,

    We really appreciate your writing in. We are bit unclear with your issue. Do you mean to show the like and dislike buttons for only logged in users? If yes then you can use cld_like_dislike_html filter to check if users are logged in or not. Please go to help section for more detail regarding this filter.

    Regards WPHC

    yes, the idea was to hide like/dislike for everyone but logged in users. Could you clarify where can I apply that filter? What file should I edit? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only for registered users’ is closed to new replies.