gotygota
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [WP Bootstrap Starter] Change password form textFantastic that worked! Thank you very much!
In case someone as the same issue, removing the parent function is not necessary. The final code snippet I used was the following:
add_filter('the_password_form', 'new_password_form', 11); function new_password_form () { global $post; $label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID ); $o = '<form action="' . esc_url( home_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post"> <div class="d-block mb-3">' . __( "THE NEW TEXT", "wp-bootstrap-starter" ) . '</div> <div class="form-group form-inline"><label for="' . $label . '" class="mr-2">' . __( "TEXT BEFORE PASSWORD BOX", "wp-bootstrap-starter" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" maxlength="20" class="form-control mr-2" /> <input type="submit" name="Submit" value="' . esc_attr__( "BUTTON TEXT", "wp-bootstrap-starter" ) . '" class="btn btn-primary"/></div> </form><p> SOME EXTRA TEXT UNDER THE FORM </a>.</p> '; return $o; }Thanks again for the help!
Forum: Developing with WordPress
In reply to: Password protected pages and logged in userThank you very much for your answer!
I completely agree about the security of password protected content. Unfortunately the customer cannot send personalized mail with unique logins for each and every of their customer, and is persuaded that asking them to create an account themselves is too much work and they won’t bother using the site (which is a training website BTW). They still don’t want the content to be public, so the password protected pages seemed like the best solution, even if we cannot make sure the passwords won’t be shared. And then came the problematic of these 2 specific customers they are convinced will share the password…
In any case, thanks for your answer! I will see if I can play with get_the_content() and custom roles to open access. If not, I guess they should decide what “risk” they are willing to take!