Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #804089

    Hello,
    I would like to change the minimum password strength in Woo Commerce. I found the following solution on another site, but it breaks the site when I add it to my Enfold child theme’s functions.php file

    /**
     * Change min password strength.
     *
     * @author James Kemp (Iconic)
     * @link https://iconicwp.com/decrease-strength-required-woocommerce-passwords/
     * @param int $strength
     * @return int
     */
    function iconic_min_password_strength( $strength ) {
        return 2;
    }
    
    add_filter( 'woocommerce_min_password_strength', 'iconic_min_password_strength', 10 1 );

    Could you provide another solution, please? Thank you!

    #804398

    Hey perfectword,

    Can you try to ask first on woocommerce’s support? they should be able to give you a better solution than us, since we are only using woocommerce hooks to change the design of woocommerce to make it integrate better with the theme.

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.