Support » Plugin: Login Widget With Shortcode » Call to undefined method login_wid::curPageURL()

  • Copied the code directly from the readme.txt

    if ( !is_user_logged_in() ) { <br>
    wp_redirect(‘http://www.example.com/login/?redirect=’.login_wid::curPageURL());<br>
    exit;

    This was working fine but now it’s throwing the following error:

    PHP Fatal error: Uncaught Error: Call to undefined method login_wid::curPageURL()

  • You must be logged in to reply to this topic.