Title: lukeoly's Replies | WordPress.org

---

# lukeoly

  [  ](https://wordpress.org/support/users/lukeoly/)

 *   [Profile](https://wordpress.org/support/users/lukeoly/)
 *   [Topics Started](https://wordpress.org/support/users/lukeoly/topics/)
 *   [Replies Created](https://wordpress.org/support/users/lukeoly/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/lukeoly/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/lukeoly/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/lukeoly/engagements/)
 *   [Favorites](https://wordpress.org/support/users/lukeoly/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Modifying the Password Protected message](https://wordpress.org/support/topic/modifying-the-password-protected-message/)
 *  Thread Starter [lukeoly](https://wordpress.org/support/users/lukeoly/)
 * (@lukeoly)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/modifying-the-password-protected-message/#post-1419179)
 * Ok, I have a solution for this.
 * You have to open and edit the wp-content/themes/yourtheme/functions.php file.
   You can copy and paste the code below into this file just before the php close
   tag.
    This will then insert your custom text into password protect message field.
 * function replace_the_password_form($content) {
    global $post; // if there’s a
   password and it doesn’t match the cookie if ( !empty($post->post_password) &&
   stripslashes($_COOKIE[‘wp-postpass_’.COOKIEHASH])!=$post->post_password ) { $
   output = ‘
 *  <form action=”‘.get_option(‘siteurl’).’/wp-pass.php” method=”post”>
    ‘.__(“This
   post is password protected. To view it please enter your password below:”).’
 *  <label for=”post_password”>Password:</label>
    <input name=”post_password” class
   =”input” type=”password” size=”20″ /> <input type=”submit” name=”Submit” class
   =”button” value=”‘.__(“Submit”).'” />
 *  </form>
 *  ‘;
    return $output; } else return $content; } add_filter(‘the_content’,’replace_the_password_form’);
 * Depending on what your function.php file is you may also need to put aÂ <?phpÂ
   before this code and a ?>
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Deleted one of the admin accounts and lost pages](https://wordpress.org/support/topic/deleted-one-of-the-admin-accounts-and-lost-pages/)
 *  Thread Starter [lukeoly](https://wordpress.org/support/users/lukeoly/)
 * (@lukeoly)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/deleted-one-of-the-admin-accounts-and-lost-pages/#post-1342315)
 * I’ve seemed to have lost about 8 pages out of 36.
    The best method of recovery
   i have found is to strip the code from the Google cache files
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Deleted one of the admin accounts and lost pages](https://wordpress.org/support/topic/deleted-one-of-the-admin-accounts-and-lost-pages/)
 *  Thread Starter [lukeoly](https://wordpress.org/support/users/lukeoly/)
 * (@lukeoly)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/deleted-one-of-the-admin-accounts-and-lost-pages/#post-1342311)
 * Because our website’s content is changing so often, it would probably be more
   work to start way back from the last backup.
 * I can’t find any page’ish file to restore.
 * Where are they saved?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Deleted one of the admin accounts and lost pages](https://wordpress.org/support/topic/deleted-one-of-the-admin-accounts-and-lost-pages/)
 *  Thread Starter [lukeoly](https://wordpress.org/support/users/lukeoly/)
 * (@lukeoly)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/deleted-one-of-the-admin-accounts-and-lost-pages/#post-1342294)
 * i have a backup but i’m not sure how recent it is.
    What files in the wp content
   folder do I have to restore?

Viewing 4 replies - 1 through 4 (of 4 total)