WordPress.org

Support

Support » Requests and Feedback » [Plugin: Private WP] Update for 2.6?

[Plugin: Private WP] Update for 2.6?

  • I’ve updated to WP 2.6 and had to disable this plugin in order to access my site. Is there an update in the works or planned? Or does anyone know what needs to be modified to make it work with 2.6?

Viewing 4 replies - 1 through 4 (of 4 total)
  • hey guy luckly i got someone helping me with this dude..

    for some odd reason it took me a good halfg hour to narrow down what plugin it was.. and it was this one.. yeah im waiting for this to be updated

    Cause, i’d like to be kept login and so if i start a new tab or browser it will shoot me to my site. instead of always have to log in!

    Members Only
    Register Plus

    but anyways. can’t wait for an update.

    You can change the code in the file private-wp.php
    to:

    <backticks>
    <?php
    function private_wp ()
    {
    if (!is_user_logged_in ()) {
    wp_redirect(get_option(‘siteurl’) . ‘/wp-login.php’);
    }
    }

    add_action(‘get_header’, ‘private_wp’);
    ?>
    </backticks>

    Without ‘backticks’, of course…

    <?php
    function private_wp ()
    {
      if (!is_user_logged_in ()) {
        wp_redirect(get_option('siteurl') . '/wp-login.php');
      }
    }
    
    add_action('get_header', 'private_wp');
    ?>

    First I love this plugin…GREAT !!!
    can one tell me how I can open one page say the ABOUT ME …
    and lock down every thing else ???
    I would like maybe only the about me page to be accessible to the net but the post covered by security.

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Private WP] Update for 2.6?’ is closed to new replies.
Skip to toolbar