• Resolved tollube

    (@tollube)


    Hey,
    I despair getting this plugin to work.
    I just want to hide a widget based on if a user is logged in. And hide another when a user is not logged in.

    I added this to my functions.php:
    add_filter( ‘eleconditions_vars’, ‘myuser_loggedin’);
    function myuser_loggedin ( $custom_vars ) {
    $custom_vars = is_user_logged_in();
    return $custom_vars;
    }

    And I wrote this to the conditions tab:
    myuser_loggedin == true

    What am I missing? Why does it show the same when logged in and logged out?

    Thanks in advance. I look forward in properly using this nice plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t get Plugin to work’ is closed to new replies.