Created
November 20, 2019 12:18
-
-
Save femiyb/b689ad4c13295a642b254b54fc51deb9 to your computer and use it in GitHub Desktop.
overwrite the text on Strong Passwords plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'init', 'switch_my_pmpro_password_notice' ); | |
| function switch_my_pmpro_password_notice() { | |
| if ( has_filter( 'pmpro_checkout_after_password', 'pmprosp_pmpro_checkout_after_password' ) ) { | |
| remove_filter( 'pmpro_checkout_after_password', 'pmprosp_pmpro_checkout_after_password', 1 ); | |
| add_filter( 'pmpro_checkout_after_password', 'my_pmprosp_pmpro_checkout_after_password', 1 ); | |
| } | |
| } | |
| function my_pmprosp_pmpro_checkout_after_password() { | |
| ?> | |
| <div id="pmprosp-container"></div> | |
| <?php | |
| echo '<small id="pmprosp-password-notice">Note: The password must contain:<br /> | |
| – 8 characters<br /> | |
| – 1 upper case letter<br /> | |
| – 1 lower case letter<br /> | |
| – 1 number<br /> | |
| – 1 special character<br /> | |
| If your password does not contain the above it will be rejected for security reasons.</small>'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment