Problems with WP 6.1.1 and the get_user_meta() function
-
On upgrading from v6.0.3 to v6.1.1, the function get_user_meta() (used in my theme) is not working correctly!
In the following code v6.1.1 returns $guid as an empty value, however when I revert back to v6.0.3 all works as expected and $guid is correct (obviously for the same $memberCode)!
In both cases, $user is returned correctly.
$user = get_user_by( ‘login’, $memberCode );
if($user != false){
//Get the guid of this user
$guid = get_user_meta($user->ID, ‘guid’, true);Any pointers to what the problem could be or how to solve it?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Problems with WP 6.1.1 and the get_user_meta() function’ is closed to new replies.