• Resolved Tim

    (@timwakeling-1)


    Hi

    Great job putting the code into a class – the right thing to do. πŸ™‚

    However my site was using the PHP call to the function, like this:
    echo pplb_logout_button();

    After updating your plugin I got PHP errors that the function was not found, so I had to change my code to this:
    $pplb = new PPLB_Plugin(); echo $pplb->pplb_logout_button();

    You might want to update your advice on the settings page and/or provide a backup function so that users like me don’t get struck with PHP fatal errors.

    Thanks for the plugin though – nice work πŸ™‚

    Tim

    https://wordpress.org/plugins/protected-posts-logout-button/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nate Reist

    (@natereist)

    Hey Tim,

    Sorry about that! I patched the plugin to include that function again and made it just call the shortcode, so that it doesn’t need to create a new instance of that class. Thanks for the heads up!

    Nate

    Thread Starter Tim

    (@timwakeling-1)

    That was quick – thanks! πŸ™‚

    Hi Nate,

    I’ve installed the plugin but the button don’t logout. When i press it i’m still login.

    I ‘ve include the code on my header.php file but don’t works

    Can you help me?
    Regards from Chile!

    Thread Starter Tim

    (@timwakeling-1)

    You’ll need to post a new topic, jorgedelcampo, as this one is marked “resolved” and you have a different problem. πŸ™‚

    https://wordpress.org/support/plugin/protected-posts-logout-button

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with function now in class’ is closed to new replies.