Skip to content

Instantly share code, notes, and snippets.

@yehudah
Created February 26, 2017 19:34
Show Gist options
  • Select an option

  • Save yehudah/84d9b709b826453eaa928a3a9f2af27d to your computer and use it in GitHub Desktop.

Select an option

Save yehudah/84d9b709b826453eaa928a3a9f2af27d to your computer and use it in GitHub Desktop.
Remove password enforce from password reset page after register
<?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