pods
pods copied to clipboard
Enhance user magictag
Description
Currently the {@user.##} magic tag is quite limited to the WP_User object only. This won't properly support multiple metedata values and also doesn't consider the a possible User Pod. This PR fixes this by fixing two things:
-
pods_v()
> Proper order of getting user properties or metadata -
pods_evaluate_tag()
> If a user Pod exists, it will run the tag through this Pod first.
Related GitHub issue(s)
Fixes #7150
Changelog text for these changes
PR checklist
- [x] I have tested my own code to confirm it works as I intended.
- [x] My code follows the WordPress Coding Standards.
- [x] My code follows the WordPress Inline Documentation Standards.
- [ ] My code includes automated tests for PHP and/or JS (if applicable).