Woocommerce password strength change
add_filter( 'woocommerce_min_password_strength', 'reduce_min_strength_password_requirement' );
function reduce_min_strength_password_requirement( $strength ) {
// 3 => Strong (default) | 2 => Medium | 1 => Weak | 0 => Very Weak (anything).
return 2;
}
# change the wording of the password hint.
add_filter( 'password_hint', 'indic_password_hint' );
function indic_password_hint ( $hint ) {
$hint = 'Hint: To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).';
return $hint;
}
# to remove password hint and strendth check
function indic_remove_password_strength() {
wp_dequeue_script( 'wc-password-strength-meter' );
}
add_action( 'wp_print_scripts', 'indic_remove_password_strength', 10 );
Also in PHP:
- check php for errors
- downlad php
- create symfony project
- date('Y ', $date);
- date du jour en php
- Your Composer dependencies require the following PHP extensions to be installed: fileinfo
- php try catch multiple exceptions
- do_shortcode not working
- browser cache laravel
- alter seeder in laravel
- $headder in php
- check substring php
- clear remeber cache laravel
- Basic features of Exception Handling php
- dynamic input field laravel-livewire
- drupal 8 twig filters
- change timestamp to date php
- eloquent seeder
- adding days to time value in php
- drop down php form retrieve data from database
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) laravel
- @for loop php
- check if result contains something php
- console.log php variables