Advertisement
lorro

WooCommerce - Set minimum password strength

Mar 23rd, 2017
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2.   // WooCommerce - Set minimum password strength
  3.   add_filter( 'woocommerce_min_password_strength', 'custom_password_strength' );
  4.   function custom_password_strength( $strength ) {
  5.     // 3 strong = default, 2 medium, 1 weak or anything
  6.     return 2;
  7.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement