Created
February 26, 2017 19:34
-
-
Save yehudah/84d9b709b826453eaa928a3a9f2af27d to your computer and use it in GitHub Desktop.
Remove password enforce from password reset page after register
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 | |
| /* | |
| Plugin Name: Remove Pass enforce | |
| Version: 1.0 | |
| Author: Yehuda Hassine | |
| License: GPL2 | |
| */ | |
| add_action('login_enqueue_scripts', 'remove_pass_enforce', 11 ); | |
| function remove_pass_enforce() { | |
| wp_dequeue_script( 'password-strength-meter' ); | |
| wp_dequeue_script( 'user-profile' ); | |
| } | |
| add_filter('password_hint', 'remove_password_hint'); | |
| function remove_password_hint() { | |
| return ''; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment