Skip to content

Instantly share code, notes, and snippets.

@boogah

boogah/nofsp.php Secret

Last active February 27, 2018 17:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boogah/04056d3abafa8e156daf to your computer and use it in GitHub Desktop.
Save boogah/04056d3abafa8e156daf to your computer and use it in GitHub Desktop.
Deactivate Force Strong Passwords for WP Engine customers by dropping this file into mu-plugins.
<?php
/*
Plugin Name: No FSP
Description: Deactivate Force Strong Passwords
Version: 0.1
Author: WP Engine
Author URI: http://wpengine.com/
License: GPLv2
*/
add_action('init', function() {
remove_action( 'admin_enqueue_scripts', 'slt_fsp_enqueue_force_zxcvbn_script' );
remove_action( 'login_enqueue_scripts', 'slt_fsp_enqueue_force_zxcvbn_script' );
remove_action( 'user_profile_update_errors', 'slt_fsp_validate_profile_update', 0, 3 );
remove_action( 'validate_password_reset', 'slt_fsp_validate_strong_password', 10, 2 );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment