daily pastebin goal
78%
SHARE
TWEET

WooCommerce - Set minimum password strength

lorro Mar 23rd, 2017 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
Top