This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run migration on login process | |
add_filter( 'check_password', 'migrate_magento_password', 10, 4 ); | |
function migrate_magento_password( $check, $password, $hash, $user_id ) { | |
if ( $check ) { | |
// password is valid, no need to migrate | |
return $check; | |
} | |
// get Magento password data |