Matteo Ragusa

Results 3 comments of Matteo Ragusa

Hi @timnolte , thanks for answering me, WordPress Environment Website URL: now it is under vpn PHP Version: 7.3.5 WordPress Version: 5.6.1 Plugin Version: 3.8.1 Identity Provider: AWS Relevant Plugin...

ok I found the error, I need to normalize the username before creating the user. add_filter( 'openid-connect-generic-alter-user-data', [$this, 'pre_username_normalize'], 10, 2); private static function pre_username_normalize($user_data, $user_claim){ //normalizzo lo username $user_data['user_login']...

Hi @timnolte . I was able to solve this problem using this hook. I just removed static from the wording and the function is executed correctly in the hook. add_filter(...