PHP code example of bbs-lab / wordpress-password-policy
1. Go to this page and download the library: Download bbs-lab/wordpress-password-policy library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bbs-lab / wordpress-password-policy example snippets
add_filter( 'bbs_pp_validate_password', function ( WP_Error $errors, string $password ) {
return $errors;
}, 10, 2 );
// Keep user meta on uninstall (default: purge).
add_filter( 'bbs_pp_uninstall_purge_user_meta', '__return_false' );