Opened 6 years ago
Closed 6 years ago
#691 closed enhancement (fixed)
bb_get_usermeta()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Back-end | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Is there such a function? If not, can it be added? Although it's a simple query to get the usermeta value, it would be nice to have a wrapper for it, especially if it works with the cache. I don't understand how the cache works and have trouble following the existing meta functions, otherwise I would have tried to write something myself.
Change History (4)
Nope. :) This is better, thank you.
It's updated, too, isn't it, when bb_add_usermeta is called?
Yes - the cache is updated. Any objects you've got hanging around previously created by bb_get_user() are not automatically updated; those are real variables, not references.
And actually, I think convenience functions will be useful.
All usermeta data are appended to the user objects you get from bb_get_user() (and are cached).
Example:
Knowing that, if you still need a bb_get_usermeta() function, can you explain what you need it for?