Update 2.8.9 – Breaking Changes in User Data Retrieval
-
Hi everyone,
I’ve encountered a significant issue after updating Ultimate Member from version 2.8.6 to 2.8.9 that affects several of my custom plugins. Therefore I needed to rollback to the older version.
After the update, my custom plugins that rely on retrieving user data during the login process have stopped working correctly. Specifically, the
um_user()
function is returning null for all user data fields.Code Example:
add_action('um_user_login', array($this, 'login_user'), 9);
// Inside the login_user method:
array(
'user_id' => um_user('ID'),
'username' => um_user('user_login'),
'user_email' => um_user('user_email'),
)Previous Behavior (2.8.6): – The code successfully retrieved user information during login – All fields returned proper user data
Current Behavior (2.8.9): – All
um_user()
calls return null – The plugins are non-functional due to missing user dataEnvironment Details: – Ultimate Member Version: 2.8.9 – Previous Working Version: 2.8.6 – WordPress Version: 6.6.2
Has anyone else experienced similar issues with the update? Any suggestions for alternative methods to retrieve user data during login would be greatly appreciated.
Thank you for your help!
- You must be logged in to reply to this topic.