Support » Plugin: WP Login Box » Link only instead of login box

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ziv

    (@ziv)

    Yeah it is possible…though it’s not really the point of the plugin.
    I can tell you how to do this, but first let me know how you use wplb.
    Do you use it with the widget, shortcode, or function?

    Thread Starter Manitoba

    (@manitoba)

    Thanks!
    I´m using it as a widget.
    The reason why I would like only links is because I want to place the links on the top bar of my homepage.
    Your plugin works very fine otherwise.

    Actually I found a function to insert php code in a text widget. I will just use it to build the login / logout logic.

    add_filter('widget_text', 'enable_php_code', 99);
    
    function enable_php_code ($text) {
    if (strpos($text, '<' . '?') !== false) {
    ob_start();
    eval('?' . '>' . $text);
    $text = ob_get_contents();
    ob_end_clean();
    }
    return $text;
    }

    Thanks again

    Plugin Author Ziv

    (@ziv)

    Alright, glad you found something that works 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link only instead of login box’ is closed to new replies.