• Resolved vdominik19

    (@vdominik19)


    Hello.
    How can i setting the timers to only logged in users see?
    I don’t find a option for this..
    Thanks for the help!
    Best regards:
    Dominik Varga (SorozatMax.hu)

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hello,
    You can add this code snippet in your theme functions.php:

    
    add_filter('hurryt_show_campaign', function($show, $id){
    
     if(is_user_logged_in()){
      return $show;
     }
    
     return false;
    
    });

    Best,
    Nabil

    Thread Starter vdominik19

    (@vdominik19)

    Hi! Thanks for the reply.
    But when I paste it, it unfortunately spoils the page
    I paste to the functions.php by the end of file..
    I use the latest Roseta Theme and the HurryTimer!
    What can i do?

    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Sorry, something was missing in the code, this time it should work:

    
    add_filter('hurryt_show_campaign', function($show, $id){
    
     if(is_user_logged_in()){
      return $show;
     }
    
     return false;
    
    }, 10, 2);
    
    Thread Starter vdominik19

    (@vdominik19)

    Many thanks.
    Now working fine!
    Best regards:
    Dominik Varga (SorozatMax.hu)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can i setting to only logged in users see?’ is closed to new replies.