WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Private WP] Update for 2.6? (5 posts)

  1. spencerjw
    Member
    Posted 6 years ago #

    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?

  2. YOUAREtehSCENE
    Member
    Posted 6 years ago #

    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.

  3. Anonymous
    Unregistered
    Posted 6 years ago #

    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>

  4. Anonymous
    Unregistered
    Posted 6 years ago #

    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');
    ?>
  5. gumgone
    Member
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags