It sounds like a cache somewhere is not getting updated. When you add user metadata, WP deletes the old associated cache, forcing a refresh when you use get_user_meta(). There could be other caches in play, perhaps placed by your host. If you cannot determine how to refresh all caches involved, go straight to the DB and get the data using $wpdb methods. Not as efficient as caches, but more reliable.
Viewing 1 replies (of 1 total)
The topic ‘Get_user_meta not working in my plugin’ is closed to new replies.