/ Published in: PHP
WP Functions
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* CUSTOM PASSWORD FORM */ add_filter( 'the_password_form', 'custom_password_form' ); function custom_password_form() { global $post; $o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-pass.php" method="post"> ' . __( "CUSTOM MESAGE TO CUSTOMERS HERE" ) . ' <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; }