Title: edit password protected post text
Last modified: August 19, 2016

---

# edit password protected post text

 *  Resolved [jazfotodesign](https://wordpress.org/support/users/jazfotodesign/)
 * (@jazfotodesign)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/)
 * [http://www.spiritgrowth.com/?p=315](http://www.spiritgrowth.com/?p=315)
 * I can’t find anywhere to edit a password protected post
 * “This post is password protected. To view it please enter your password below:”
 * which file is it in? thanks

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

 *  [rachaely](https://wordpress.org/support/users/rachaely/)
 * (@rachaely)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802012)
 * Are you the admin or user of this site?
 * If you’re the user, you won’t be able to see the post unless you enter the password
   you’ve been supplied.
 * If you’re the admin, you should be able to edit the post via the admin panel 
   at [http://www.spiritgrowth.com/wp-admin/](http://www.spiritgrowth.com/wp-admin/)
 * Good luck!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802029)
 * [http://wordpress.org/support/topic/how-do-i-change-password-protected-text?replies=25](http://wordpress.org/support/topic/how-do-i-change-password-protected-text?replies=25)
 *  Thread Starter [jazfotodesign](https://wordpress.org/support/users/jazfotodesign/)
 * (@jazfotodesign)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802041)
 * cool the following code worked.
 *     ```
       <?php
       add_filter( 'the_password_form', 'custom_password_form' );
       function custom_password_form() {
       	global $post;
       	$label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
       	$o = '<form class="protected-post-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="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" />
       	</form>
       	';
       	return $o;
       }
       ?>
       ```
   
 * _How can I put a link where the bold text is? `<a href="link">`doesn’t work_
 * $o = ‘<form class=”protected-post-form” action=”‘ . get_option(‘siteurl’) . ‘/
   wp-pass.php” method=”post”>
    ‘ . __( “**This post is password protected. To view
   it please enter your password below:**” ) . `
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802048)
 *     ```
       $o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-pass.php" method="post">
       	' . '<a href="link">' . __( "This post is password protected. To view it please enter your password below:" ) . '</a>' . '
       	<label for="'
       ```
   
 *  Thread Starter [jazfotodesign](https://wordpress.org/support/users/jazfotodesign/)
 * (@jazfotodesign)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802103)
 * thank you alchymyth, very helpful 🙂
 *  [Orin](https://wordpress.org/support/users/orin/)
 * (@orin)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802436)
 * I wrote a plugin which will do just this, but without having to modify your core
   files. You can safely upgrade and not break your modifications:
 * [Protected Post Personalizer](http://wordpress.org/extend/plugins/protected-post-personalizer/)
 *  Thread Starter [jazfotodesign](https://wordpress.org/support/users/jazfotodesign/)
 * (@jazfotodesign)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802437)
 * Orin, can your plug-in customize individual posts or does it just change what
   it says for all of them?
 *  [Orin](https://wordpress.org/support/users/orin/)
 * (@orin)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802447)
 * [@jazfotodesign](https://wordpress.org/support/users/jazfotodesign/) It does 
   change the “Protected:” text site-wide, but you can easily remove that text entirely
   and instead simply title your posts things like “Password Required: New Pictures”.

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

The topic ‘edit password protected post text’ is closed to new replies.

## Tags

 * [password](https://wordpress.org/support/topic-tag/password/)
 * [protected](https://wordpress.org/support/topic-tag/protected/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [Orin](https://wordpress.org/support/users/orin/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/edit-password-protected-post-text/#post-1802447)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
